JSPM

cryptojs.js

1.1.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q19833F
    • License MIT

    JavaScript implementations of standard and secure cryptographic algorithms.

    Package Exports

    • cryptojs.js

    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 (cryptojs.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    cryptojs

    JavaScript implementations of standard and secure cryptographic algorithms.

    Node.js (Install)

    Requirements:

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

    Usage

    Including all libraries, for access to extra methods:

    const CryptoJS = require("cryptojs.js");
    
    // encrypt
    var ciphertext = CryptoJS.encrypt("plaintext", "Secret Passphrase");
    console.log(ciphertext);
    
    // decrypt
    var plaintext = CryptoJS.decrypt(ciphertext, "Secret Passphrase");   
    // XluzvcUwZFU=3MD2vMz8PHySPJlKZiWjJg==1Gv6n6Tv8azr
    console.log(plaintext);