I want to check a user input()
against a password, but I do not want to store the actual password anywhere. I am thinking to encrypt the input and the password in the same way, then check those against each other. However, I am unable to find anything on one-way encryption in Python.
1). Is this the best solution? (If not, what is the best solution?)
2). How would I implement this?
I tried to use the built-in hash()
function, but every time I run the program, the same value generates a different hash.