Storing Encrypted Passwords

Look at a common innovation in password storage and discuss its shortcomings.

Two-way encrypted passwords

So, you’ve decided not to store your passwords in plain text? You are on the right path. But what should you do instead? Perhaps just encrypt it. That ought to be good.

The example below uses PyNaCl’s two-way encryption algorithms to encrypt and decrypt a password. Otherwise, it’s just like the plaintext example from the last lesson.

Get hands-on with 1400+ tech skills courses.