How to encrypt and decrypt in node?
Is there maybe a built in function or like a module that can help me?
@ChezCoder To store passwords, it's normal to use one way encryption (hashing). This means that you can encrypt the data, but it's impossible to decrypt it. However, whenever you want to log a user in you can just find the hash for the value of their password and then check that against the stored hash. You can do this pretty easily with the Stanford JS Crypto Module. Try an algorithm like sha-256 or sha-512.
You can also use the built in crypto module's