MCPcopy Create free account
hub / github.com/RemoteState/nodejs-ecs / HashPassword

Method HashPassword

src/utils/index.ts:4–6  ·  view source on GitHub ↗
(password: string)

Source from the content-addressed store, hash-verified

2
3export default class Utils {
4 public static HashPassword(password: string): string {
5 return bcrypt.hashSync(password);
6 }
7
8 public static ComparePassword(plain: string, hash: string): boolean {
9 return bcrypt.compareSync(plain, hash);

Callers 1

CreateUserMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected