mirror of
https://github.com/ajnart/homarr.git
synced 2026-05-06 03:56:42 +02:00
10 lines
216 B
TypeScript
10 lines
216 B
TypeScript
import bcrypt from "bcrypt";
|
|
|
|
export const createSalt = async () => {
|
|
return bcrypt.genSalt(10);
|
|
};
|
|
|
|
export const hashPassword = async (password: string, salt: string) => {
|
|
return bcrypt.hash(password, salt);
|
|
};
|