I simply want to hash a string (a Password) in Python 3. How do I do that?
What is a Simple Way of doing that? Could you please give a Coding example or Recommend me a Module that can use.
>Solution :
You can hash values in Python 3 with Hashlib:
import hashlib
h = hashlib.new('sha256')#sha256 can be replaced with diffrent algorithms
h.update('Hello World'.encode()) #give a encoded string. Makes the String to the Hash
print(h.hexdigest())#Prints the Hash