mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-30 12:40:10 +00:00
7 lines
480 B
TypeScript
7 lines
480 B
TypeScript
declare function sha512(input: Uint8Array | string): Promise<Uint8Array>;
|
|
declare function hashPassword(password: string): Promise<string>;
|
|
declare function comparePassword(password: string, hash: string): Promise<boolean>;
|
|
declare function isPasswordHashValid(hash: string): Promise<boolean>;
|
|
declare function getPasswordHashAlgorithm(hash: string): Promise<"bcrypt" | undefined>;
|
|
|
|
export { comparePassword, getPasswordHashAlgorithm, hashPassword, isPasswordHashValid, sha512 };
|