UNPKG

ldap-passwords

Version:

ldap-passwords offers secure password hashing and verification using LDAP password algorithms.

16 lines 804 B
//#region src/md5.d.ts declare function md5(textPassword: string): string; declare function verifyMD5(textPassword: string, md5Password: string | string[]): boolean; //#endregion //#region src/sha512.d.ts declare function sha512Crypt(textPassword: string, salt?: string): string; declare function verifySha512Crypt(textPassword: string, sha512Password: string | string[]): boolean; //#endregion //#region src/ssha.d.ts declare function ssha(textPassword: string): string; declare function verifySSHA(textPassword: string, sshaPassword: string | string[]): boolean; //#endregion //#region src/main.d.ts declare function ldapVerifyAll(textPassword: string, hashedPassword: string | string[]): boolean; //#endregion export { ldapVerifyAll, md5, sha512Crypt, ssha, verifyMD5, verifySSHA, verifySha512Crypt };