import bcrypt from "bcryptjs@2"; export async function main(password: string) { const salt = await bcrypt.genSalt(); const hash_pass = await bcrypt.hash(password, salt); return hash_pass; }
Submitted by hugo989 5 days ago