mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-29 18:59:20 +01:00
10 lines
226 B
TypeScript
10 lines
226 B
TypeScript
import bcrypt from "bcrypt";
|
|
|
|
export const createSaltAsync = async () => {
|
|
return bcrypt.genSalt(10);
|
|
};
|
|
|
|
export const hashPasswordAsync = async (password: string, salt: string) => {
|
|
return bcrypt.hash(password, salt);
|
|
};
|