@types/cryptr
TypeScript icon, indicating that this package has built-in type declarations

4.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/cryptr

Weekly Downloads

26,583

Version

4.0.3

License

MIT

Unpacked Size

3.23 kB

Total Files

5

Last publish

Collaborators

  • types