lin-cms-test
Version:
The core library of Lin CMS, this package is just for test!
9 lines (8 loc) • 339 B
TypeScript
export interface Option {
algorithm?: string;
saltLength?: number;
iterations?: number;
}
export declare const generate: (password: string, options?: Option | undefined) => string;
export declare const verify: (password: string, hashedPassword: string) => boolean;
export declare const isHashed: (password: string) => boolean;