node.js: encrypting data that needs to be decrypted?
- by fancy
We are using bcrypt for passwords and data that never needs to be decrypted.
What should do to protect other user information that does. For this example lets say that we didn't want a users real name to be in plain text in case someone was to obtain the db.
This is somewhat sensitive data but also needs to be called from time to time and displayed in plain text. Is there a simple way to do this?