{"_id":"aes256","_rev":"11-d78e887b6345268da0f8b4daf51be5e1","name":"aes256","description":"A Node.js module to simplify using the built-in \"crypto\" module for AES256 encryption with random initialization vectors","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"aes256","version":"1.0.0","description":"A Node.js module to simplify using the built-in \"crypto\" module for AES256 encryption with random initialization vectors","author":{"name":"James M. Greene","email":"james.m.greene@gmail.com","url":"http://greene.io/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/JamesMGreene/node-aes256.git"},"bugs":{"url":"https://github.com/JamesMGreene/node-aes256/issues"},"homepage":"https://github.com/JamesMGreene/node-aes256#readme","keywords":["aes","aes256","iv","initialization","vector","encryption","cryptography"],"main":"index.js","scripts":{"test":"grunt travis --verbose"},"config":{"blanket":{"pattern":"","data-cover-never":["node_modules","test","coverage"],"data-cover-reporter-options":{"relativepath":true}},"travis-cov":{"threshold":100}},"devDependencies":{"chai":"^3.4.1","grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.3","grunt-env":"^0.4.4","grunt-mocha-cov":"^0.4.0","grunt-open":"^0.2.3","mocha":"^2.3.4","travis-cov":"^0.2.5"},"gitHead":"3ff90389b40a7c297a9dad81058c145871dca582","_id":"aes256@1.0.0","_shasum":"e760deb14a5a1212b25e515d9809b13c8963c9f7","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"jamesmgreene","email":"james.m.greene@gmail.com"},"maintainers":[{"name":"jamesmgreene","email":"james.m.greene@gmail.com"}],"dist":{"shasum":"e760deb14a5a1212b25e515d9809b13c8963c9f7","tarball":"https://registry.npmjs.org/aes256/-/aes256-1.0.0.tgz","integrity":"sha512-oWvXRvv0NUV+6rqWAOrCyd2meeviuyMiAzj5QXboKbPpkaMsmlMf9iVKVpHfSGy8DVsoyiEmJU6kPlBZxH3mTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICDUS+BlwmyWW4BzVZ5PX2FZuzpJKbeEXajQvIYxJMMtAiBclD3QQE+92+j/xo/4gh6N7HFFGrTAJ7eGpXesyeMJHg=="}]},"directories":{}},"1.0.1":{"name":"aes256","version":"1.0.1","description":"A Node.js module to simplify using the built-in \"crypto\" module for AES256 encryption with random initialization vectors","author":{"name":"James M. Greene","email":"james.m.greene@gmail.com","url":"http://greene.io/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/JamesMGreene/node-aes256.git"},"bugs":{"url":"https://github.com/JamesMGreene/node-aes256/issues"},"homepage":"https://github.com/JamesMGreene/node-aes256#readme","keywords":["aes","aes256","iv","initialization","vector","encryption","cryptography"],"main":"index.js","scripts":{"test":"grunt travis --verbose"},"config":{"blanket":{"pattern":"","data-cover-never":["node_modules","test","coverage"],"data-cover-reporter-options":{"relativepath":true}},"travis-cov":{"threshold":100}},"devDependencies":{"chai":"^3.4.1","grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.3","grunt-env":"^0.4.4","grunt-mocha-cov":"^0.4.0","grunt-open":"^0.2.3","mocha":"^2.3.4","travis-cov":"^0.2.5"},"gitHead":"6d0435c20d0f6d55fc38ab95adeceded736d5918","_id":"aes256@1.0.1","_shasum":"6d1a83c6fc219c0add4cc007253e729710c2aa70","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"jamesmgreene","email":"james.m.greene@gmail.com"},"maintainers":[{"name":"jamesmgreene","email":"james.m.greene@gmail.com"}],"dist":{"shasum":"6d1a83c6fc219c0add4cc007253e729710c2aa70","tarball":"https://registry.npmjs.org/aes256/-/aes256-1.0.1.tgz","integrity":"sha512-H7qOdNjHwlb3TjzBEgrqOaVKd3YAxsXlzF3UsmG13DVgUY0VWbEZ3mJGbiyYGfUbyT3GZNGfgSJ54prBK0+ugA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIED5xpapjMOfBGKo9PCxWwV97RL/L6UoH3o15Ww9JJYhAiBXVv5e2VezfwFqB53BOcZDy6zI9Fv4gMmFMwSP5sdkEw=="}]},"directories":{}},"1.0.2":{"name":"aes256","version":"1.0.2","description":"A Node.js module to simplify using the built-in \"crypto\" module for AES256 encryption with random initialization vectors","author":{"name":"James M. Greene","email":"james.m.greene@gmail.com","url":"http://greene.io/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/JamesMGreene/node-aes256.git"},"bugs":{"url":"https://github.com/JamesMGreene/node-aes256/issues"},"homepage":"https://github.com/JamesMGreene/node-aes256#readme","keywords":["aes","aes256","iv","initialization","vector","encryption","cryptography"],"main":"index.js","scripts":{"test":"grunt travis --verbose"},"config":{"blanket":{"pattern":"","data-cover-never":["node_modules","test","coverage"],"data-cover-reporter-options":{"relativepath":true}},"travis-cov":{"threshold":100}},"devDependencies":{"chai":"^3.4.1","grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.3","grunt-env":"^0.4.4","grunt-mocha-cov":"^0.4.0","grunt-open":"^0.2.3","mocha":"^2.3.4","travis-cov":"^0.2.5"},"gitHead":"fc04183fd41c3afccb62629082d495c3432cbaa9","_id":"aes256@1.0.2","_shasum":"6ce991728bfd5639f911c04527278b5c515ab4fc","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"jamesmgreene","email":"james.m.greene@gmail.com"},"maintainers":[{"name":"jamesmgreene","email":"james.m.greene@gmail.com"}],"dist":{"shasum":"6ce991728bfd5639f911c04527278b5c515ab4fc","tarball":"https://registry.npmjs.org/aes256/-/aes256-1.0.2.tgz","integrity":"sha512-5UVQTgMMDLClaGX7ozd+mr9uWphJVspUZoCmFoHRN6xcxY1NmDs9JR+NiKNKkT0h+qIpNJhNdE4XCFA5ZJL/WA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+smT5aSyxwVUkgJ7QXYjbklZxMfmxi6PVDcal4kda+QIhAN9Kr3Tocw9cmeUUDWWPO313T2QNGnz1lWCXKGR9yPz1"}]},"directories":{}},"1.0.3":{"name":"aes256","version":"1.0.3","description":"A Node.js module to simplify using the built-in \"crypto\" module for AES256 encryption with random initialization vectors","author":{"name":"James M. Greene","email":"james.m.greene@gmail.com","url":"http://greene.io/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/JamesMGreene/node-aes256.git"},"bugs":{"url":"https://github.com/JamesMGreene/node-aes256/issues"},"homepage":"https://github.com/JamesMGreene/node-aes256#readme","keywords":["aes","aes256","iv","initialization","vector","encryption","cryptography"],"main":"index.js","scripts":{"test":"grunt travis --verbose"},"config":{"blanket":{"pattern":"","data-cover-never":["node_modules","test","coverage"],"data-cover-reporter-options":{"relativepath":true}},"travis-cov":{"threshold":100}},"devDependencies":{"chai":"^4.1.2","grunt":"^1.0.1","grunt-contrib-jshint":"^1.1.0","grunt-env":"^0.4.4","grunt-mocha-cov":"^0.4.0","grunt-open":"^0.2.3","mocha":"^4.1.0","travis-cov":"^0.2.5"},"gitHead":"3d38bf5a772a61ba2ee494d93c160b25518c076c","_id":"aes256@1.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"jamesmgreene","email":"james.m.greene@gmail.com"},"maintainers":[{"name":"jamesmgreene","email":"james.m.greene@gmail.com"}],"dist":{"integrity":"sha512-4SWYLB6AP6WxNlC6LtGKSsEwbgUG9G3gbsoMap6hyH2XjGoINJ2LYp3drIsKx9XqdEmZE96p+FB6txjwaxHG/g==","shasum":"15f6fd239991fab0815eb3d946b537d0690acf9b","tarball":"https://registry.npmjs.org/aes256/-/aes256-1.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICSrh9sUDMQkvD3lNBQKDOktsEEvFayjW4EBTrllSAHJAiB66RqfsXjMmpGYfdtDLp9lr/o3fbD9wwDnjTQqdXbQcw=="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aes256-1.0.3.tgz_1515736457426_0.27886320394463837"},"directories":{}},"1.0.4":{"name":"aes256","version":"1.0.4","description":"A Node.js module to simplify using the built-in \"crypto\" module for AES256 encryption with random initialization vectors","author":{"name":"James M. Greene","email":"james.m.greene@gmail.com","url":"http://greene.io/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/JamesMGreene/node-aes256.git"},"bugs":{"url":"https://github.com/JamesMGreene/node-aes256/issues"},"homepage":"https://github.com/JamesMGreene/node-aes256#readme","keywords":["aes","aes256","iv","initialization","vector","encryption","cryptography"],"main":"index.js","scripts":{"test":"grunt travis --verbose"},"config":{"blanket":{"pattern":"","data-cover-never":["node_modules","test","coverage"],"data-cover-reporter-options":{"relativepath":true}},"travis-cov":{"threshold":100}},"devDependencies":{"chai":"^4.1.2","grunt":"^1.0.3","grunt-contrib-jshint":"^1.1.0","grunt-env":"^0.4.4","grunt-mocha-cov":"^0.4.0","grunt-open":"^0.2.3","mocha":"^5.2.0","travis-cov":"^0.2.5"},"gitHead":"15cfa20a3200df47939c272fb96a375334a54ac4","_id":"aes256@1.0.4","_npmVersion":"6.3.0","_nodeVersion":"8.11.3","_npmUser":{"name":"jamesmgreene","email":"james.m.greene@gmail.com"},"dist":{"integrity":"sha512-yuaKOdoKebChkP+uRsQovWsJYm6qf58cQTvXBu6MM0BMnrXZ9SXEiXREBuU513ZRr+Uo2qX/Ci6EODLUu/qiHA==","shasum":"7cd4666535216cae28eecece0d46fdb4c469c557","tarball":"https://registry.npmjs.org/aes256/-/aes256-1.0.4.tgz","fileCount":4,"unpackedSize":8857,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbbQ1NCRA9TVsSAnZWagAAb5YP/Aw7Eidl6aIfNicFOWc1\n1K6GEGcADEOqpNFQBCiVuLF1cyrX1CaHv9FgTmRJXwmQrsrRDo1hjDLg2rdY\n+l61ZS+PFwPriHs5PFsW2sfqkW9YhzseSPwol3Sxu1Y5iDspCjn/yywhpk7R\nlGqfA/vWXZzCeTyNTEZdyS+81Wu6WKBzOgUphCd+HhzZSsf0o+R58TCtEey7\nyUpZVP8/qvEno6PtEp1Bp0Mb84dWVec+iLldHwqvTRPgv8TbAMKST9QADG6/\nKI60kMUzCV6EavTCZmDa9AJm8hZ+wmtuYdPmtWVCZl7YyYDvcLQ7eTZJ7/aQ\ngctIOuTM19vhZXaYCq8H7SuWoB0RRTA6ZmU05FPowp74oS51CDz+/0CfTBQu\nJkjwUTOa+juzg7vWQGDfJF8F+8PCoiylwcz14sdbuI+94DnHkc023gP1v53F\n47kJYaalmNQL2FlksRnaBwuJiwNrWVaXOvAXCwVrXAjBHG7GI4Qdrv62oGb0\npT7Byo0038Z77Nqvc6/z4MQi07m7QlHmSLkkGU8GnocBy0r1KoX+XUeEDfoj\nQz/Ya8wRnhNvOF1xDOjC82KcjtN1rJBL90JKnDCVrmXqvoQDDOQonYtDOyzr\n2V0jnX6+OcdoguMeegDqyGGLb/SfvcsE/4O0moVOmjzN+kt9h6mxLLqti17a\nrwU5\r\n=OUV7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVjgE1fADypcmEdG1qk+A0taCBzDRd3/nIzEyOzbUMoQIgIDAdhgayLXkIx0c4ya5r2R6NP7axmxUvgUwcJGI8y5A="}]},"maintainers":[{"name":"jamesmgreene","email":"james.m.greene@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aes256_1.0.4_1533873484948_0.957292849370291"},"_hasShrinkwrap":false},"1.1.0":{"name":"aes256","version":"1.1.0","description":"A Node.js module to simplify using the built-in \"crypto\" module for AES256 encryption with random initialization vectors","author":{"name":"James M. Greene","email":"james.m.greene@gmail.com","url":"http://greene.io/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/JamesMGreene/node-aes256.git"},"bugs":{"url":"https://github.com/JamesMGreene/node-aes256/issues"},"homepage":"https://github.com/JamesMGreene/node-aes256#readme","keywords":["aes","aes256","iv","initialization","vector","encryption","cryptography"],"main":"index.js","scripts":{"test":"grunt travis --verbose"},"config":{"blanket":{"pattern":"","data-cover-never":["node_modules","test","coverage"],"data-cover-reporter-options":{"relativepath":true}},"travis-cov":{"threshold":100}},"devDependencies":{"chai":"^4.1.2","grunt":"^1.3.0","grunt-contrib-jshint":"^1.1.0","grunt-env":"^0.4.4","grunt-mocha-cov":"^0.4.0","grunt-open":"^0.2.4","mocha":"^5.2.0","travis-cov":"^0.2.5"},"gitHead":"a7642591576f2e2f0c10716b2d2bbe43794c4a36","_id":"aes256@1.1.0","_nodeVersion":"12.13.0","_npmVersion":"6.14.9","dist":{"integrity":"sha512-JfjTA5HEpvnn4lX9lsfgPMiV6HYqefRmvUj5MScIUeaRCbWEIT8URNpKA9ddY9iWl+Ye9oUHrdusO1cDmS/tEQ==","shasum":"4666b229dc1fdaef0a5d0ac09a5a315d895f7450","tarball":"https://registry.npmjs.org/aes256/-/aes256-1.1.0.tgz","fileCount":4,"unpackedSize":10152,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHxmJCRA9TVsSAnZWagAAYE4P/Rn0SPEcZvkLjCM3y2V3\n5f9HQq3DGIYFh5p3pVMN5+5369CNN9qZJXtkR8+5wfnhO58qCUzXKllpffP5\njGrzw5rhldtMGYRqh4HiAujqk9mp21RIeykxRehVopVKLDvwOTYO82THaKJh\nhpokEtd/YeHGSN53sgltoouTxHqx64sibE8oTZxmXoWngFo9xTo125oaRv6g\nmRVEZZ32Uf12u+GccSl6zFeUIvRSrC0NUuja/ladbR93ggXsYVoojljOE3L3\nOr+8u5rYKhWYm3dx9ogitLJefZoUFU2DLhPCGxzB23w/6ej1+DsEU6LvfFdl\n2zhDFIPJL57/UFHofXOkn/wlTSzqyqqHyFSQo9c0QqLT3gPPY6SepwfPj7Oq\nNMTrOkkp5tbQaHagX9zEzbTJYiFXAg+MRDljggsIMRwGktYSiMqDsoM+Ot5A\nSjzPcPkYHjf3Nn7xAzqf40nIUCUsKU93w0IwGLumWXPYq9g4Z5GH+galJQRC\nmaTHpfeaxllYc3hlZE4Gon6aOiJP4yxWG2Z+1JT5icacvf6n7RNyEeTvzDLL\nCGBR363eFEVZrAxOVqP2uUy2lzk+SBTbD6XEXMLltXGMU6EVfSM0pBfnyg5c\nn7zmMxJDlwAWAf0AfjWV/1yw1DegxVzxtkdKHLkao1Seidh4LxvYCU/Sr2vI\n01Ld\r\n=4tNs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICM2X2B0rQvNZOTKlA5UWj7PKg0Lz9G29GVdtE34+SPoAiAJd5/AqIncRxmY7UcOGKmsVrOpimG9Oxly0NsJkOcwBw=="}]},"_npmUser":{"name":"jamesmgreene","email":"james.m.greene@gmail.com"},"directories":{},"maintainers":[{"name":"jamesmgreene","email":"james.m.greene@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aes256_1.1.0_1612650889174_0.5407023722672311"},"_hasShrinkwrap":false}},"readme":"# aes256\n[![GitHub Latest Release](https://badge.fury.io/gh/JamesMGreene%2Fnode-aes256.svg)](https://github.com/JamesMGreene/node-aes256) [![Build Status](https://secure.travis-ci.org/JamesMGreene/node-aes256.svg?branch=master)](https://travis-ci.org/JamesMGreene/node-aes256) [![Coverage Status](https://coveralls.io/repos/JamesMGreene/node-aes256/badge.svg?branch=master&service=github)](https://coveralls.io/github/JamesMGreene/node-aes256?branch=master) [![Dependency Status](https://david-dm.org/JamesMGreene/node-aes256.svg?theme=shields.io)](https://david-dm.org/JamesMGreene/node-aes256) [![Dev Dependency Status](https://david-dm.org/JamesMGreene/node-aes256/dev-status.svg?theme=shields.io)](https://david-dm.org/JamesMGreene/node-aes256#info=devDependencies)\n\n\nA Node.js module to simplify using the built-in `crypto` module for AES-256 encryption with random initialization vectors.\n\nThis module generates a random [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector) each time one of the `encrypt` methods is called.\n\nFurthermore, your symmetric session key (a.k.a. secret, a.k.a. passphrase) can be of any size because it is hashed using SHA-256.\n\n\n## Install\n\n```shell\n$ npm install aes256\n```\n\n\n## Usage\n\n### Example using static methods\n\n```js\nvar aes256 = require('aes256');\n\nvar key = 'my passphrase';\nvar plaintext = 'my plaintext message';\nvar buffer = Buffer.from(plaintext);\n\nvar encryptedPlainText = aes256.encrypt(key, plaintext);\nvar decryptedPlainText = aes256.decrypt(key, encryptedPlainText);\n// plaintext === decryptedPlainText\n\nvar encryptedBuffer = aes256.encrypt(key, buffer);\nvar decryptedBuffer = aes256.decrypt(key, encryptedBuffer);\n// plaintext === decryptedBuffer.toString('utf8)\n```\n\n\n### Example using an `AesCipher` instance\n\n```js\nvar aes256 = require('aes256');\n\nvar key = 'my passphrase';\nvar plaintext = 'my plaintext message';\nvar buffer = Buffer.from(plaintext);\n\nvar cipher = aes256.createCipher(key);\n\nvar encryptedPlainText = cipher.encrypt(plaintext);\nvar decryptedPlainText = cipher.decrypt(encryptedPlainText);\n// plaintext === decryptedPlainText\n\nvar encryptedBuffer = cipher.encrypt(buffer);\nvar decryptedBuffer = cipher.decrypt(encryptedBuffer);\n// plaintext === decryptedBuffer.toString('utf8)\n```\n\n\n#### API\n\n_Documentation maaaaaybe forthcoming...._\n\nFor now, looking at the above usage examples, the code, or the unit tests should all give you a pretty good idea without much effort as the API surface area is very small.\n\n\n## License\n\nCopyright (c) 2015-2021, James M. Greene (MIT License)\n","maintainers":[{"name":"jamesmgreene","email":"james.m.greene@gmail.com"}],"time":{"modified":"2022-06-13T02:28:43.777Z","created":"2015-12-17T21:32:28.834Z","1.0.0":"2015-12-17T21:32:28.834Z","1.0.1":"2015-12-17T21:48:32.570Z","1.0.2":"2015-12-18T04:44:28.026Z","1.0.3":"2018-01-12T05:54:18.658Z","1.0.4":"2018-08-10T03:58:05.380Z","1.1.0":"2021-02-06T22:34:49.292Z"},"homepage":"https://github.com/JamesMGreene/node-aes256#readme","keywords":["aes","aes256","iv","initialization","vector","encryption","cryptography"],"repository":{"type":"git","url":"git+https://github.com/JamesMGreene/node-aes256.git"},"author":{"name":"James M. Greene","email":"james.m.greene@gmail.com","url":"http://greene.io/"},"bugs":{"url":"https://github.com/JamesMGreene/node-aes256/issues"},"license":"MIT","readmeFilename":"README.md","users":{"fahadfarooqmurawat":true,"aditya_1806":true}}