{"_id":"nodejs-aes256","_rev":"4-c07cb4ed55b5f77e2e5097452f9737b8","name":"nodejs-aes256","description":"This is an easy to use AES256 module for nodejs.","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"nodejs-aes256","version":"1.0.0","description":"This is an easy to use AES256 module for nodejs.","main":"nodejs-aes256.js","repository":{"type":"git","url":"https://github.com/jaysvoboda/nodejs-aes256.git"},"dependencies":{"crypto":"0.0.3"},"keywords":["aes","aes256","encryption","cryptography"],"author":{"name":"Jay Svoboda","email":"jay@svoboda.co","url":"http://jay.svoboda.co"},"license":"MIT","bugs":{"url":"https://github.com/jaysvoboda/nodejs-aes256/issues"},"homepage":"https://github.com/jaysvoboda/nodejs-aes256","gitHead":"36828a232b8ea57009d7ffb2151022975216413d","_id":"nodejs-aes256@1.0.0","scripts":{},"_shasum":"6d55cae8b80f7422b765bcc4546004c4a0f7e6af","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.1","_npmUser":{"name":"jaysvoboda","email":"jay@svoboda.co"},"maintainers":[{"name":"jaysvoboda","email":"jay@svoboda.co"}],"dist":{"shasum":"6d55cae8b80f7422b765bcc4546004c4a0f7e6af","tarball":"https://registry.npmjs.org/nodejs-aes256/-/nodejs-aes256-1.0.0.tgz","integrity":"sha512-nnbkwWdjy/LllEeYuHl0hl7HIf/zWaRnqGvZEJQkjQssWG+LPWPQVpm9Hmk2LSI9idqcvMjQw8T7KNFkE6d/4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGtyWBgD6I61cEt5AiKq/5jLX1J6nG6boEIcJxoUTvF+AiEAjlo+W40ACx2Ba2SyJbNJRIv6ju1VmcgkfS7HzeJE/7I="}]}},"1.0.1":{"name":"nodejs-aes256","version":"1.0.1","description":"This is an easy to use AES256 module for nodejs.","main":"nodejs-aes256.js","repository":{"type":"git","url":"git+https://github.com/jaysvoboda/nodejs-aes256.git"},"keywords":["aes","aes256","encryption","cryptography"],"devDependencies":{"mocha":"2.3.4","should":"8.0.2"},"scripts":{"test":"mocha"},"author":{"name":"Jay Svoboda","email":"jay@svoboda.co","url":"http://jay.svoboda.co"},"license":"MIT","bugs":{"url":"https://github.com/jaysvoboda/nodejs-aes256/issues"},"homepage":"https://github.com/jaysvoboda/nodejs-aes256","gitHead":"ae4436f9208e0dba5f92b778be5beb1bdc605193","_id":"nodejs-aes256@1.0.1","_shasum":"bb68cb3f3591c2888c1a136e9667cc1a8ee15448","_from":".","_npmVersion":"3.5.2","_nodeVersion":"0.10.25","_npmUser":{"name":"jaysvoboda","email":"jay@svoboda.co"},"dist":{"shasum":"bb68cb3f3591c2888c1a136e9667cc1a8ee15448","tarball":"https://registry.npmjs.org/nodejs-aes256/-/nodejs-aes256-1.0.1.tgz","integrity":"sha512-cncuZ1ZkygbbWfUkspp+vvweGSZj/Z4WbUaw7IBf5/d7leREso/KtrRhilHUSq+WvMPOrsU0tAACekc3Ga7H4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUjnp/3rd1LBcF+jIxGx17Xuv5gLn8CALqQW7H2Z7I8AiEAuG+g7K79uAm3pd9UiHpmRx24Ln6cwyUHvPpUJFCKqpQ="}]},"maintainers":[{"name":"jaysvoboda","email":"jay@svoboda.co"}]}},"readme":"# nodejs-aes256\nThis is an easy to use AES256 module for nodejs.\n\nThis module generates a random [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector) each time the encrypt method is called. Furthermore, your shared key can be of any size because it is hashed using sha256.\n\n## Setup\nMake sure you install and require the nodejs-aes256 module.\n\n`npm install nodejs-aes256`\n\n`var aes256 = require('nodejs-aes256');`\n\n## Encryption\nCiphertext is base64 encoded. The first parameter is the shared key and the second is the plaintext.\n\n`var ciphertext = aes256.encrypt(key, plaintext);`\n\n## Decryption\nFor decryption, simply provide the shared key and ciphertext.\n\n`var plaintext = aes256.decrypt(key, ciphertext);`\n\n## Notes\n\n* This has only been tested with strings for the shared key and plaintext\n* It does not detect if decryption has failed\n","maintainers":[{"name":"jaysvoboda","email":"jay@svoboda.co"}],"time":{"modified":"2022-06-22T02:18:23.444Z","created":"2015-04-04T21:33:08.644Z","1.0.0":"2015-04-04T21:33:08.644Z","1.0.1":"2015-12-27T03:59:15.022Z"},"homepage":"https://github.com/jaysvoboda/nodejs-aes256","keywords":["aes","aes256","encryption","cryptography"],"repository":{"type":"git","url":"git+https://github.com/jaysvoboda/nodejs-aes256.git"},"author":{"name":"Jay Svoboda","email":"jay@svoboda.co","url":"http://jay.svoboda.co"},"bugs":{"url":"https://github.com/jaysvoboda/nodejs-aes256/issues"},"license":"MIT","readmeFilename":"README.md"}