Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Algorithm used by strapi for password


const bcrypt = require('bcryptjs');



const hashPassword = async password => await bcrypt.hash(password, 10);

const validatePassword = async (password, hash) => await bcrypt.compare(password, hash);

Source by forum.strapi.io #
 
PREVIOUS NEXT
Tagged: #Algorithm #strapi #password
ADD COMMENT
Topic
Name
1+2 =