Hashing

This is my hashing example. On line 75, you can set if you want to guess or set the password. ADMIN=True means you are setting, ADMIN=False means you are guessing. Once you have followed the instructions, if you look in the pswrd file, you will see your password as a string of numbers.

When you give it an new password, it hashes it (which is like one way encryption), but when you check, rather than decrypting, it encrypts your guess and checks if it matches.

Some of you may have noticed the hashing is ambiguous, but this is a replica remember! The problem we face is even though there are multiple combinations, entering the wrong one could still work. e.g: Hello world can be encrypted, but fseo2j3t9da may give the same thing.

Please don’t use this for actual encryptions – it almost certainly is not secure!

View project

Leave a Reply

Your email address will not be published. Required fields are marked *