Share your repls and programming experiences

← Back to all posts
A password engine
Codemonkey51 (10)

This is a tool you can use for secure passwords. Also, only the original password will work and there is no way to un-encrypt it. Use this however you want. All I ask is if you give some credit.
Edit: main code now in
Edit 2: GitHub repo

nN34398Ff (72)

you can delete the hash where it says hash(input("Input whatever"))and then put print(PASSWORD) at the end in the if statement and you can see the password.

Codemonkey51 (10)

@nN34398Ff ye but then you have to fork it. And you can't undo passwords stored in a file.

NotTani (46)

Hi! This is a cool project. One thing though: MD5 generally considered insecure. Use sha256 or scrypt from the hashlib module. Here is an article about this.

NotTani (46)

@Codemonkey51 You'll want add .hexdigest() to the end of the .sha256() function (both times) to turn it into text to you can compare it. Hope this helps and happy coding! Oh, and change line 9 to:

PASSWORD = hashlib.sha256(input("Whats your password? ").encode()).hexdigest()
OllieDuda (2)

Traceback (most recent call last):
File "", line 9, in <module>
PASSWORD = hashlib.md5(unicode(input("Whats your password? ")))
NameError: name 'unicode' is not defined
um is that supposed to happen?

lamcp (0)

sys('CLS') only works on Windows machine I think. Great work!