Jump to content

Compare password custumer with db


Damiano97

Recommended Posts

the value in the database is encrypted using either bcrypt or md5

 

So while the value is the password and the cookie key, that is not stored in plain clear text in the database.  It is encrypted first using a one way encryption, so that anyone with access to your database would not be able to see the actual password.

Link to comment
Share on other sites

Hi there!

 

One question! I'm working on a little project that involves prestashop 1.7 and Node.JS .

The question is, can I use the bcrypt-nodejs to generate and verify prestashops passwords?

 

https://www.npmjs.com/package/bcrypt-nodejs

 

Like:

const COOKIEKEY = env.config.COOKIEKEY;

 

var hash = bcrypt.hashSync("COOKIEKEY");

 

Thank you! best regards!

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...