mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
11 lines
273 B
TypeScript
11 lines
273 B
TypeScript
import { hashSync as bcryptHashSync } from 'bcrypt';
|
|
|
|
import { SALT_ROUNDS } from '../../constants/auth';
|
|
|
|
/**
|
|
* @deprecated Use the methods built into `bcrypt` instead
|
|
*/
|
|
export const hashSync = (password: string) => {
|
|
return bcryptHashSync(password, SALT_ROUNDS);
|
|
};
|