Installation
npm install --save @types/cryptr
Summary
This package contains type definitions for cryptr (https://github.com/MauriceButler/cryptr).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cryptr.
index.d.ts
declare class Cryptr {
/**
* Cryptr provides a mechanism for aes-256-ctr encryption/decryption.
* @param secret key used for encryption/decryption
*/
constructor(secret: string);
/** Encrypt a string. */
encrypt(value: string): string;
/** Decrypt a string. */
decrypt(value: string): string;
}
export = Cryptr;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Roman Rogowski.