JSPM

@types/cryptr

4.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 104550
  • Score
    100M100P100Q160493F
  • License MIT

TypeScript definitions for cryptr

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/cryptr) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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.