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

    xxtea

    0.2.2 • Public • Published

    xxtea

    npm download npm version License

    Pure javascript xxtea encryption algorithm for Node.js.

    Install

      npm install xxtea

    Usage

    var xxtea = require('xxtea');
    var pass  = 'password';
    // to encrypt
    var encrypted = xxtea.encrypt('data to encrypt', pass);
     
    // to decrypt
    var decrypted = xxtea.decrypt(encrypted, pass);

    API

    xxtea

    • decrypt(string, password)
      • string - required - the data to be decrypted.
      • password - required - the password to be used in decryption.
    • encrypt(string, password)
      • string - required - the data to be encrypted.
      • password - required - the password to be used in encryption.

    Install

    npm i xxtea

    DownloadsWeekly Downloads

    325

    Version

    0.2.2

    License

    MIT

    Unpacked Size

    8.11 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar
    • avatar