I'm actually using bcrypt module to hash and compare hashed passwords.
What i would like to do is to remove the bcrypt module and use the default crypto library both for hashing and comparing passwords.
Is this possible?
Will this be less safe than using node-bcrypt?
Do you have any example/tutorial/doc/link on how to do?
or example i'm doing like this actually:
bcrypt.hash(string,secret_key)
bcrypt.compare(string,string,secret_key);
i just would like to replicate this with crypto if possible:
crypto.hash(string,secret_key)
crypto.compare(string,string,secret_key);