Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hashlib
- class hashtext:
- def hashingtext(self,text,hashtype):
- text = text.encode("utf-8")
- hash1 = hashlib.new(hashtype)
- hash1.update(text)
- return hash1.hexdigest()
- print("Powered by boksha")
- print("\n")
- b = hashlib.algorithms_available
- print(b)
- print("\n")
- text = str(input("pls your text > "))
- while text == "":
- print("pls your text > ")
- text = str(input("pls yuor text > "))
- hashtype = str(input("pls your hashtype > "))
- while hashtype == "":
- print("pls your hashtype > ")
- hashtype = str(input("pls your hashtype > "))
- h = hashtext()
- print(h.hashingtext(text,hashtype))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement