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.jsUsage
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);