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

Class Utils

src/utils/index.ts:3–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import bcrypt from 'bcryptjs';
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);
10 }
11}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected