Beispiel #1
0
	def base64decode(self):
		print cr + "-----------------------------------------------"
		print cb + "Encoding ..."
		time.sleep(1.5)
		decoded = self.dec.decode('base64')
		print cr + "Decoded ~> " + cy + decoded
		with open('base64-decoded.txt', 'w') as e:
			e.write(self.dec + " : " + decoded + "\n")
			e.close()
		ircoders.gb()
		self.getback = raw_input(cc + " $ ")
		if self.getback == "1":
			options()
		elif self.getback == "2":
			print cg + " Nice to meet you <3"
Beispiel #2
0
	def md5encode(self):
		print cr + "-----------------------------------------------"
		print cb + "Encoding ..."
		time.sleep(1.5)
		encoded = hashlib.md5(self.getinputmd51).hexdigest()
		print cr + "encoded ~> " + cy + encoded
		with open('md5-encoded.txt', 'w') as e:
			e.write(self.getinputmd51 + " : " + encoded)
			e.close()
		ircoders.gb()
		self.getback = raw_input(cc + " $ ")
		if self.getback == "1":
			options()
		elif self.getback == "2":
			print cg + " Nice to meet you <3"
			sys.exit()
Beispiel #3
0
	def sha512encode(self):
		sha512 = hashlib.sha512(str(self.getsha512))
		encoded = sha512.hexdigest()
		print "-----------------------------------------------"
		print cb + "Encoding ..."
		time.sleep(1.5)
		print cr + "Encoded ~> " + cy + encoded 
		with open('sha512-encoded.txt', 'w') as e:
			e.write(self.getsha512 + " : " + encoded + "\n")
			e.close()
		ircoders.gb()
		self.getback = raw_input(cc + " $ ")
		if self.getback == "1":
			options()
		elif self.getback == "2":
			print cg + " Nice to meet you <3"
			sys.exit()