{"_id":"aes","_rev":"460136","name":"aes","description":"A JavaScript component for the Advanced Encryption Standard (AES).","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"jp","email":"jprichardson@gmail.com"}],"time":{"modified":"2024-06-20T08:41:02.000Z","created":"2014-02-21T15:25:28.702Z","0.1.0":"2014-02-22T15:09:53.919Z","0.0.1":"2014-02-21T15:25:28.702Z"},"users":{},"author":"","repository":{"url":"git@github.com:cryptocoinjs/aes.git","type":"git"},"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","tarball":"http://registry-npm.ywwl.com/aes/download/aes-0.1.0.tgz","integrity":"sha512-zoxY6y00WNu5EVioxSm+X1uIcx0EIRGdRPGO+C3RsccQT/JgMHo/GiGfl7ryOTdKuCtbnSHrkthTjPSME2oOjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClga4lL2nqEYkNzG/k5Q5ny3DtrGZ8JUBVKWIAP+ucywIgKyL716xSpJWo9pdJLTvwCjQxlFtTMce5S0CzQguGos8="}],"size":3458,"noattachment":false,"key":"/aes/-/aes-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jp","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jp","email":"jprichardson@gmail.com"}],"directories":{},"publish_time":1393081793919,"_cnpm_publish_time":1393081793919},"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","tarball":"http://registry-npm.ywwl.com/aes/download/aes-0.0.1.tgz","integrity":"sha512-j9Vr+zEqP8tsUdD3vic+kQvMLPGHnUEt7/cTUYLXIXuNv9RxnT9plc6buZ3waC1rsvxzJAUc5dSvVyD0Q6zpAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvO/TEErDqqHeruLJYTA40DmwYclz4GhNgOY7quji62AIhAIJynZZCFiu/0CgAYhkdLDTj3nsy5feb+bCCR0tzsGT7"}],"size":5334,"noattachment":false,"key":"/aes/-/aes-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jp","email":"jprichardson@gmail.com"},"maintainers":[{"name":"jp","email":"jprichardson@gmail.com"}],"directories":{},"publish_time":1392996328702,"_cnpm_publish_time":1392996328702}},"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\n\n","_attachments":{},"homepage":"https://github.com/cryptocoinjs/aes","bugs":{"url":"https://github.com/cryptocoinjs/aes/issues"},"license":"MIT"}