13 lines
275 B
TypeScript
13 lines
275 B
TypeScript
|
declare class Cryptr {
|
||
|
constructor(
|
||
|
secret: string,
|
||
|
options?: { pbkdf2Iterations?: number; saltLength?: number; encoding?: 'hex' | 'base64' | 'latin1' },
|
||
|
);
|
||
|
|
||
|
encrypt(value: string): string;
|
||
|
|
||
|
decrypt(value: string): string;
|
||
|
}
|
||
|
|
||
|
export = Cryptr;
|