{"name":"pkcs7","version":"1.0.2","keywords":["pkcs7","pkcs7 encrypt decrypt padding pkcs"],"author":{"name":"Brightcove"},"license":"Apache2","_id":"pkcs7@1.0.2","maintainers":[{"name":"dmlap","email":"dlapalomento@gmail.com"},{"name":"szhuang","email":"szhuang@brightcove.com"},{"name":"jaysonesmith","email":"npm@nes.33mail.com"},{"name":"jcialdea-bc","email":"jcialdea@brightcove.com"},{"name":"abarstow","email":"alexander.barstow@gmail.com"},{"name":"rbalakrishna","email":"rbalakrishna@brightcove.com"},{"name":"okaramian","email":"okaramia@gmail.com"},{"name":"mjneil","email":"mneilweb@gmail.com"},{"name":"jwhisenant","email":"jwhisenant@brightcove.com"},{"name":"tjaneczko","email":"tjaneczko@brightcove.com"},{"name":"sharathprabhal","email":"sharathbose@gmail.com"},{"name":"dmkelly","email":"dmk3534+npm@gmail.com"},{"name":"ehynds","email":"ehynds+npm@gmail.com"},{"name":"twalling","email":"tim.walling@gmail.com"},{"name":"misterben","email":"npm@misterben.me"},{"name":"pdias","email":"pdias@brightcove.com"},{"name":"jmingolla-bcov","email":"jmingolla@brightcove.com"},{"name":"nhuffman-brightcove","email":"nhuffman@brightcove.com"},{"name":"spatel","email":"spatel@brightcove.com"},{"name":"cbarstow","email":"crb4242@gmail.com"},{"name":"cmoscardini","email":"cmoscardini@brightcove.com"},{"name":"lday","email":"ldayananda@brightcove.com"},{"name":"jmiller_bc","email":"jmiller@brightcove.com"},{"name":"pagarwal","email":"pagarwal@brightcove.com"},{"name":"bsahlas","email":"bsahlas@brightcove.com"},{"name":"tomruggs","email":"truggles@brightcove.com"},{"name":"saxena-gaurav","email":"gauravsaxena.oakland@gmail.com"},{"name":"grsingh","email":"gsingh@brightcove.com"},{"name":"brightcove-user","email":"gkatsevman@brightcove.com"},{"name":"marguinbc","email":"marguin@brightcove.com"},{"name":"apadhye","email":"apadhye@brightcove.com"},{"name":"violettemi","email":"violettemi@gmail.com"},{"name":"gesinger","email":"gesinger@gmail.com"},{"name":"brandonocasey","email":"brandonocasey@gmail.com"},{"name":"incompl","email":"gsmith@incompl.com"},{"name":"forbesjo","email":"joseph.a.forbes@gmail.com"},{"name":"mrocajr","email":"mroca@brightcove.com"},{"name":"misteroneill","email":"pgoneill@gmail.com"},{"name":"zdsbs","email":"zdsbs@yahoo.com"},{"name":"imbcmdth","email":"jon.carlos.rivera@gmail.com"},{"name":"gkatsev","email":"me@gkatsev.com"},{"name":"brightcove-admin","email":"sward@brightcove.com"}],"homepage":"https://github.com/brightcove/pkcs7","bugs":{"url":"https://github.com/brightcove/pkcs7/issues"},"bin":{"pkcs7":"bin/cli.js"},"dist":{"shasum":"b6dba527528c2942bfc122ce2dafcdb5e59074e7","tarball":"http://registry-npm.ywwl.com/pkcs7/download/pkcs7-1.0.2.tgz","integrity":"sha512-qhDb3U2hlntU9mzwS9G7hDPELpHkxo1+RYY/rY3YxBGAewW2LHt1sNdxMQRAUOJjH1PBKeDXoaF321kK0SWJ5Q==","signatures":[{"sig":"MEUCIQD9dr2epF/Gx1ybKHdtLOfo8l7TfDEAuSh7nFBhaoLoxwIgP8/Nfk6bmeg5yHPwB4NUUcowpjq8J1nM/VtfNAI4TgM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":5028,"noattachment":false,"key":"/pkcs7/-/pkcs7-1.0.2.tgz"},"main":"dist/pkcs7.cjs.js","_from":".","files":["bin","src","dist"],"module":"dist/pkcs7.es.js","_shasum":"b6dba527528c2942bfc122ce2dafcdb5e59074e7","engines":{"npm":"^1.4.6","node":"^0.10"},"gitHead":"0da81b7450d33a520473b66d3d5b1b0f8ccc1de2","scripts":{"lint":"vjsstandard","test":"nodeunit test/dist/pkcs7_test.js","build":"npm-run-all -p build:*","clean":"rimraf dist test/dist","watch":"npm-run-all -p watch:*","pretest":"npm-run-all lint build:test","build:js":"npm-run-all -p build:js:modules build:js:umd build:js:pad build:js:unpad","prebuild":"npm run clean","watch:js":"npm-run-all -p watch:js:modules watch:js:umd watch:js:pad watch:js:unpad","postclean":"mkdirp dist test/dist","build:test":"rollup -c scripts/test.rollup.js","prepublish":"npm run build","watch:test":"rollup -c scripts/test.rollup.js -w","build:js:pad":"rollup -c scripts/pad.rollup.js","build:js:umd":"rollup -c scripts/umd.rollup.js","watch:js:pad":"rollup -c scripts/pad.rollup.js -w","watch:js:umd":"rollup -c scripts/umd.rollup.js -w","build:js:unpad":"rollup -c scripts/unpad.rollup.js","watch:js:unpad":"rollup -c scripts/unpad.rollup.js -w","build:js:modules":"rollup -c scripts/modules.rollup.js","watch:js:modules":"rollup -c scripts/modules.rollup.js -w"},"_npmUser":{"name":"gkatsev","email":"me@gkatsev.com"},"repository":{"url":"git+https://github.com/brightcove/pkcs7.git","type":"git"},"_npmVersion":"2.15.6","description":"Add and remove pkcs7-style padding.","directories":{},"vjsstandard":{"ignore":["dist","docs","test/dist"]},"_nodeVersion":"4.4.3","devDependencies":{"mkdirp":"^0.5.1","rimraf":"^2.6.1","rollup":"^0.41.6","nodeunit":"^0.11.0","babel-cli":"^6.24.1","npm-run-all":"^4.0.2","rollup-watch":"^3.2.2","babel-preset-es3":"^1.0.1","videojs-standard":"^5.2.0","rollup-plugin-json":"^2.1.1","babel-preset-es2015":"^6.24.1","rollup-plugin-babel":"^2.7.1","babel-plugin-external-helpers":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/pkcs7-1.0.2.tgz_1496435781928_0.4382348991930485","host":"s3://npm-registry-packages"},"readme":"# pkcs7\n\n[![Build Status](https://travis-ci.org/brightcove/pkcs7.svg?branch=master)](https://travis-ci.org/brightcove/pkcs7)\n[![Greenkeeper badge](https://badges.greenkeeper.io/brightcove/pkcs7.svg)](https://greenkeeper.io/)\n[![Slack Status](http://slack.videojs.com/badge.svg)](http://slack.videojs.com)\n\n[![NPM](https://nodei.co/npm/pkcs7.png?downloads=true&downloadRank=true)](https://nodei.co/npm/pkcs7/)\n\n> Add and remove pkcs7-style padding.\n\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->\n**Table of Contents**  *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n- [Getting Started](#getting-started)\n- [Documentation](#documentation)\n- [Examples](#examples)\n- [Contributing](#contributing)\n- [License](#license)\n\n<!-- END doctoc generated TOC please keep comment here to allow auto update -->\n\n## Getting Started\n\nInstall the module with: `npm install pkcs7`\n\n```js\nvar pkcs7 = require('pkcs7'), encrypted;\n// pad a buffer!\nenctcrypted = encrypt(pkcs7.pad(buffer));\n\n// later, you can unpad it:\nconsole.log('the secret is out! ' + pkcs7.unpad(decrypt(encrypted)));\n```\n\nInstall with cli command\n\n```sh\n$ npm install -g pkcs7\n$ pkcs7 --help\n$ pkcs7 --version\n```\n\n## Documentation\n\nPKCS#7 padding a really simple transformation some crytographic algorithms use to ensure the number of input bytes is a multiple of some constant. Here's how it works:\n\n             01 -- if lth mod k = k-1\n          02 02 -- if lth mod k = k-2\n              .\n              .\n              .\n    k k ... k k -- if lth mod k = 0\n\n`k` is the constant value the encryption algorithm wants your input to be a multiple of. This project assumes `k` is *always* sixteen. Not much to it, right? If reading specs is your thing, check out [RFC 5652](http://tools.ietf.org/html/rfc5652).\n\n\n## Examples\n\nYou can run pkcs7 from the command line:\n\n```shell\n# pad a string generated by echo and the hex dump the result\necho -n \"0123456789AB\" | pkcs7 | xxd\n```\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com).\n\n\n## License\n\nCopyright (c) 2014 Brightcove\nLicensed under the Apache-2 license.\n","publish_time":1496435782815,"_cnpm_publish_time":1496435782815,"dist-tags":{"experimental":"1.0.3","latest":"1.0.4","next":"1.0.3-1"}}