A
A
AndeDark2021-01-29 16:09:29
Node.js
AndeDark, 2021-01-29 16:09:29

How to make it possible to decrypt the password?

I have a task to store passwords and email addresses in a DB in encrypted form.
Previously, I used the bcrypt library when I needed to encrypt only the password, but what about the mail, because sometimes I need to pull it out of the database and display it, and bcrypt only has a comparison function, but not decryption. What are the libraries or methods for this? I write in Node.js. Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dr. Bacon, 2021-01-29
@bacon

To score, no need to encrypt mail, there is little sense, there are an order of magnitude more problems

D
dmshar, 2021-01-29
@dmshar

And what's the problem with writing an elementary encryption-decryption function on your own and working with it before or after searching the database?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question