Reputation: 8400
How can I encrypt and decrypt a password in Google app engine without using third party libraries?
Any examples?
Upvotes: 1
Views: 1655
Reputation: 101139
If you care about your users' security, you're going to have to use a third-party library of some sort, because the only way you should be storing passwords is securely hashed with PBKDF2, SCrypt, or BCrypt - for instance, using this module, which you can easily add to your application.
Note that you should never encrypt passwords (and thus, never decrypt them) - instead, algorithms like PBKDF2 use hashing so that you can check if a password is valid, but never recover the original password.
Upvotes: 11