Advertisement
boksha0

Script Encryption

Apr 25th, 2017
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. import hashlib
  2. class hashtext:
  3.     def hashingtext(self,text,hashtype):
  4.         text = text.encode("utf-8")
  5.         hash1 = hashlib.new(hashtype)
  6.         hash1.update(text)
  7.         return hash1.hexdigest()
  8. print("Powered by boksha")
  9. print("\n")
  10. b = hashlib.algorithms_available
  11. print(b)
  12. print("\n")
  13. text = str(input("pls your text > "))
  14. while text == "":
  15.     print("pls your text > ")
  16.     text = str(input("pls yuor text > "))
  17. hashtype =  str(input("pls your hashtype > "))
  18. while hashtype == "":
  19.     print("pls your hashtype > ")
  20.     hashtype = str(input("pls your hashtype > "))
  21.  
  22. h = hashtext()
  23. print(h.hashingtext(text,hashtype))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement