{"versions":{"0.1.0":{"name":"aes","version":"0.1.0","description":"A JavaScript component for the Advanced Encryption Standard (AES).","main":"lib/aes.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"MIT","devDependencies":{"terst":"0.0.2","browserify":"~3.30.1","mocha":"~1.17.1","mochify":"~0.4.2"},"repository":{"url":"git@github.com:cryptocoinjs/aes.git","type":"git"},"keywords":["crytpo","cryptography","aes","encryption","bitcoin","bip38","cipher"],"bugs":{"url":"https://github.com/cryptocoinjs/aes/issues"},"homepage":"https://github.com/cryptocoinjs/aes","_id":"aes@0.1.0","dist":{"shasum":"75ca7ceb78e536d43eef10649ffaa1cb2ac7509d","size":3458,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/aes/-/aes-0.1.0.tgz","integrity":"sha512-zoxY6y00WNu5EVioxSm+X1uIcx0EIRGdRPGO+C3RsccQT/JgMHo/GiGfl7ryOTdKuCtbnSHrkthTjPSME2oOjA=="},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"anonymous","email":"jprichardson@gmail.com"},"maintainers":[{"name":"anonymous","email":"jprichardson@gmail.com"}],"directories":{},"publish_time":1393081793919,"_hasShrinkwrap":false,"_cnpm_publish_time":1393081793919,"_cnpmcore_publish_time":"2021-12-16T13:21:32.910Z","contributors":[]},"0.0.1":{"name":"aes","version":"0.0.1","description":"A JavaScript component for the Advanced Encryption Standard (AES).","main":"lib/aes.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"MIT","devDependencies":{"terst":"0.0.2","browserify":"~3.30.1","mocha":"~1.17.1"},"repository":{"url":"git@github.com:cryptocoinjs/aes.git","type":"git"},"keywords":["crytpo","cryptography","aes","encryption","bitcoin","bip38","cipher"],"bugs":{"url":"https://github.com/cryptocoinjs/aes/issues"},"homepage":"https://github.com/cryptocoinjs/aes","_id":"aes@0.0.1","dist":{"shasum":"a433d996c40663dd4762ed5454dad9c655b84934","size":5334,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/aes/-/aes-0.0.1.tgz","integrity":"sha512-j9Vr+zEqP8tsUdD3vic+kQvMLPGHnUEt7/cTUYLXIXuNv9RxnT9plc6buZ3waC1rsvxzJAUc5dSvVyD0Q6zpAA=="},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"anonymous","email":"jprichardson@gmail.com"},"maintainers":[{"name":"anonymous","email":"jprichardson@gmail.com"}],"directories":{},"publish_time":1392996328702,"_hasShrinkwrap":false,"_cnpm_publish_time":1392996328702,"_cnpmcore_publish_time":"2021-12-16T13:21:33.121Z","contributors":[]}},"dist-tags":{"latest":"0.1.0"},"name":"aes","time":{"created":"2022-01-26T21:06:16.825Z","modified":"2025-02-02T00:58:17.452Z","0.1.0":"2014-02-22T15:09:53.919Z","0.0.1":"2014-02-21T15:25:28.702Z"},"readme":"aes\n===\n\nA JavaScript component for the [Advanced Encryption Standard (AES)](http://en.wikipedia.org/wiki/Advanced_Encryption_Standard). Fully compatible with Node.js and the browser (via Browserify).\n\n(Note, more optimizations may need to be made)\n\n\nWhy?\n----\n\nAES is currently one of the most popular block ciper encyrption algorithms. It is relevant to the Bitcoin private key encryption scheme [BIP38](https://github.com/bitcoin/bips/blob/master/bip-0038.mediawiki).\n\n\nUsage\n-----\n\n### Installation\n\n    npm install --save aes\n\n\n### Example\n\nNote, that as version 0.1.x, you must be concerned with the endianess of your input data. It expects that the `key` is a regular JavaScript array of 4,6,8 or 32-bit unsigned values. The encrypt function is a regular JavaScript array of 4 32-bit big endian unsigned integers.\n\n```js\nvar AES = require('aes')\n\nvar key = [0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfffffff8];\nvar pt = [0x00000000,0x00000000,0x00000000,0x00000000];\nvar ct = [0xd241aab0,0x5a42d319,0xde81d874,0xf5c7b90d];\n\nvar aes = new AES(key);\nconsole.dir(aes.encrypt(pt)); // => [0xd241aab0,0x5a42d319,0xde81d874,0xf5c7b90d]\nconsole.dir(aes.decrypt(ct)); // => [0x00000000,0x00000000,0x00000000,0x00000000]\n``` \n\n### Testing\n\n1. Clone the git repo.\n2. `npm install --development`\n\n#### Node.js\n\n    Make node-test\n\n#### Browser\n\n    npm install --production selenium-standalone -g start-selenium\n\n(source your shell or open a new one), edit file `.min-wd`\n\n    start-selenium\n    Make browser-test\n\n\n### Bundle for Browser\n\n    npm install -g browserify\n    browserify < lib/aes.js > lib/aes.bundle.js\n\n\nReferences\n----------\n- https://code.google.com/p/crypto-js/source/browse/tags/3.1.2/src/aes.js\n- https://github.com/bitwiseshiftleft/sjcl/blob/master/core/aes.js\n- https://github.com/mdp/gibberish-aes\n- http://en.wikipedia.org/wiki/Advanced_Encryption_Standard\n- http://www.differencebetween.com/difference-between-stream-cipher-and-vs-block-cipher/\n- http://en.wikipedia.org/wiki/Cipher_block_chaining\n- http://opensource.apple.com/source/OpenSSL/OpenSSL-46/openssl/crypto/aes/aes_core.c\n\n\n\nCredits\n-------\n\nExtracted from the [Stanford JavaScript Crypto Library](https://github.com/bitwiseshiftleft/sjcl).\n\n\nLicense\n-------\n\nBSD License","users":{}}