Wondering what’s next for npm?Check out our public roadmap! »

    curie-cipher

    0.0.7 • Public • Published

    curie-cipher

    A library for encryption and decryption, that works both for the browser and the server.

    Installation

    Requirements:

    • Node.js
    • npm (Node.js package manager)

    Use the package manager npm to install curie-cipher.

    npm install curie-cipher

    Usage

    import { encrypt, decrypt } from 'curie-cipher'
     
    encrypt("secretKey", "message", "algorithm") # returns an object containing the iv and encrypted data
     
    decrypt("secretKey", "data", "iv", "algorithm") # returns the decrypted data as a string
     
    # algorithm is optional and defaults to aes-128-cbc

    Contributing

    Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

    Please make sure to update tests as appropriate.

    License

    MIT

    Install

    npm i curie-cipher

    DownloadsWeekly Downloads

    6

    Version

    0.0.7

    License

    MIT

    Unpacked Size

    3.15 MB

    Total Files

    7

    Last publish

    Collaborators

    • avatar