node.js: encrypting data that needs to be decrypted?

Posted by fancy on Stack Overflow See other posts from Stack Overflow or by fancy
Published on 2011-08-05T08:10:30Z Indexed on 2014/06/11 9:25 UTC
Read the original article Hit count: 135

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about node.js