Files
2021-12-21 01:32:37 +11:00

11 lines
255 B
JavaScript

import bcrypt from "bcryptjs";
export function bcrypt_password(password) {
return new Promise((done, error) => {
bcrypt.hash(password, 10, (err, hash) => {
if (err) return error(err);
done(hash);
});
});
}