{"_id":"webcrypto-jwt","_rev":"11-39a6cb66ddf55ccf5772c376446ebfdf","name":"webcrypto-jwt","description":"JSON Web Tokens (JWT) verify/sign implementation using W3C Web Cryptography (crypto.subtle).","dist-tags":{"latest":"0.2.2"},"versions":{"0.0.1":{"name":"webcrypto-jwt","version":"0.0.1","description":"JSON Web Tokens (JWT) verify/sign implementation using W3C Web Cryptography (crypto.subtle).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:pose/webcrypto-jwt.git"},"keywords":["jwt","jsonwebtoken","w3c","webcrypto","crypto","crypto.subtle"],"author":{"name":"Alberto Pose","email":"albertopose@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/pose/webcrypto-jwt/issues"},"homepage":"https://github.com/pose/webcrypto-jwt","gitHead":"654c3f209532516a4dee6115b6e8dcaf2572f5c8","_id":"webcrypto-jwt@0.0.1","_shasum":"cb9dd90954928a7fe1753dd19787f838239d872c","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.26","_npmUser":{"name":"pose","email":"albertopose@gmail.com"},"maintainers":[{"name":"pose","email":"albertopose@gmail.com"}],"dist":{"shasum":"cb9dd90954928a7fe1753dd19787f838239d872c","tarball":"https://registry.npmjs.org/webcrypto-jwt/-/webcrypto-jwt-0.0.1.tgz","integrity":"sha512-qA5GIRUQ4Tst6JToZM9dVvtkGfJa2fDLGhDICUI4tndMhrkkbQy5klsWFxe9D5TFvvXjQFdNLTUSvUVwez5tGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGLnb88T4ZT3qpBndJL6NTPXU1A/xl9DHsnhwJNSYgayAiBtE7wMp0NAnO3QJhigLyuD3O288EMukQo07lEb9oLbag=="}]},"directories":{}},"0.0.2":{"name":"webcrypto-jwt","version":"0.0.2","description":"JSON Web Tokens (JWT) verify/sign implementation using W3C Web Cryptography (crypto.subtle).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:pose/webcrypto-jwt.git"},"keywords":["jwt","jsonwebtoken","w3c","webcrypto","crypto","crypto.subtle"],"author":{"name":"Alberto Pose","email":"albertopose@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/pose/webcrypto-jwt/issues"},"homepage":"https://github.com/pose/webcrypto-jwt","gitHead":"9a6a295bf78bd6a8e268f21fbd5f23a5356ce079","_id":"webcrypto-jwt@0.0.2","_shasum":"40a5901ee8b1106f4102a88dc9281b316c01adbb","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.26","_npmUser":{"name":"pose","email":"albertopose@gmail.com"},"maintainers":[{"name":"pose","email":"albertopose@gmail.com"}],"dist":{"shasum":"40a5901ee8b1106f4102a88dc9281b316c01adbb","tarball":"https://registry.npmjs.org/webcrypto-jwt/-/webcrypto-jwt-0.0.2.tgz","integrity":"sha512-+HaWXV61Z7QZRYW25KV8eR6gLmIwfPA0A02M1+/Y7PPMeL1mrUWEIvBRlNRMoYoSARR1rZ/enfJhjWEDqtQzdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrqVEdXT5V4cMZWw2JpXxrQduiEkiwzmRKRcW96jUsOQIgV+HmPDarbXetj6IKJq6anmmpsPlh3p7RTdnRP4uvEKk="}]},"directories":{}},"0.0.3":{"name":"webcrypto-jwt","version":"0.0.3","description":"JSON Web Tokens (JWT) verify/sign implementation using W3C Web Cryptography (crypto.subtle).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:pose/webcrypto-jwt.git"},"keywords":["jwt","jsonwebtoken","w3c","webcrypto","crypto","crypto.subtle"],"author":{"name":"Alberto Pose","email":"albertopose@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/pose/webcrypto-jwt/issues"},"homepage":"https://github.com/pose/webcrypto-jwt","gitHead":"aa8a5819fe39b4b4d253f3b1cde728807bb2e626","_id":"webcrypto-jwt@0.0.3","_shasum":"45a3b172f6ca593d0fb9889cea8f2b4dceff908b","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.26","_npmUser":{"name":"pose","email":"albertopose@gmail.com"},"maintainers":[{"name":"pose","email":"albertopose@gmail.com"}],"dist":{"shasum":"45a3b172f6ca593d0fb9889cea8f2b4dceff908b","tarball":"https://registry.npmjs.org/webcrypto-jwt/-/webcrypto-jwt-0.0.3.tgz","integrity":"sha512-PyFtwXCT0CnR7x+ITTNiifo1cR6HIR9IyFyFgYn5jsukpdhUrGG/J1jHgUXV7L5pEy0T5zOHJuEZjStSKzIJSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXAja9OCnQOTwz0r6TjUdWS0H480C0hBa7trcQVjbYyAIhAKqXcONxec81FWOPJAUWo6R4iqcAkGv9z7fRHwh8z32J"}]},"directories":{}},"0.0.4":{"name":"webcrypto-jwt","version":"0.0.4","description":"JSON Web Tokens (JWT) verify/sign implementation using W3C Web Cryptography (crypto.subtle).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:pose/webcrypto-jwt.git"},"keywords":["jwt","jsonwebtoken","w3c","webcrypto","crypto","crypto.subtle"],"author":{"name":"Alberto Pose","email":"albertopose@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/pose/webcrypto-jwt/issues"},"homepage":"https://github.com/pose/webcrypto-jwt","gitHead":"c5cc974cf6c6f8febc4ad3adff0a0fa846bb2c52","_id":"webcrypto-jwt@0.0.4","_shasum":"c79cf7882387cb52b9795e2fddca9c8116f58621","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.26","_npmUser":{"name":"pose","email":"albertopose@gmail.com"},"maintainers":[{"name":"pose","email":"albertopose@gmail.com"}],"dist":{"shasum":"c79cf7882387cb52b9795e2fddca9c8116f58621","tarball":"https://registry.npmjs.org/webcrypto-jwt/-/webcrypto-jwt-0.0.4.tgz","integrity":"sha512-s5EJmV3CK3tCiWLZCyrYEt2AuhjIeyosz8qdE3zhIPkJ5YGPNSmRMh2/m3m3ZlZqlRLZx6feK0C1uSHMsg2M1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVjyjvNNojxGXQWrO8pHloYFD+iJgWgr+i5tcI+G7r9wIhAJMtDbDLOH21cuJYLaAwEUhR4Z5JLyukRxTFdC3so7uB"}]},"directories":{}},"0.1.0":{"name":"webcrypto-jwt","version":"0.1.0","description":"JSON Web Tokens (JWT) verify/sign implementation using W3C Web Cryptography (crypto.subtle).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:pose/webcrypto-jwt.git"},"keywords":["jwt","jsonwebtoken","w3c","webcrypto","crypto","crypto.subtle"],"author":{"name":"Alberto Pose","email":"albertopose@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/pose/webcrypto-jwt/issues"},"homepage":"https://github.com/pose/webcrypto-jwt","gitHead":"a135c98841bae79e16b24a9929879127cecad7e3","_id":"webcrypto-jwt@0.1.0","_shasum":"8a87aba26b4e70a2bba13047b6e85696627c5ff4","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.26","_npmUser":{"name":"pose","email":"albertopose@gmail.com"},"maintainers":[{"name":"pose","email":"albertopose@gmail.com"}],"dist":{"shasum":"8a87aba26b4e70a2bba13047b6e85696627c5ff4","tarball":"https://registry.npmjs.org/webcrypto-jwt/-/webcrypto-jwt-0.1.0.tgz","integrity":"sha512-QKfsRCJAQ1vbHIBQlMDXP7hHoKc9Go0fU2VoczycMuZJtou1gyGkUb3kXkPxBVg3l4VHhsJ4DT/7uwMsQ7sqcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxhCMfREml1qSQRW9qiEMloPiOdAKKKWsVbuGlkkJjCgIhANAaWMNrZdfrD9l2xV+Nx4/kKT3tGBsm7/+J/iGJEA4+"}]},"directories":{}},"0.2.0":{"name":"webcrypto-jwt","version":"0.2.0","description":"JSON Web Tokens (JWT) verify/sign implementation using W3C Web Cryptography (crypto.subtle).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:pose/webcrypto-jwt.git"},"keywords":["jwt","jsonwebtoken","w3c","webcrypto","crypto","crypto.subtle"],"author":{"name":"Alberto Pose","email":"albertopose@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/pose/webcrypto-jwt/issues"},"homepage":"https://github.com/pose/webcrypto-jwt","gitHead":"764cd1b79d0026a808ddeeefe1ffc35781ff2102","_id":"webcrypto-jwt@0.2.0","_shasum":"ee39efb3f2b37b9d567a8f4aa1ac10c920f2332c","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.26","_npmUser":{"name":"pose","email":"albertopose@gmail.com"},"maintainers":[{"name":"pose","email":"albertopose@gmail.com"}],"dist":{"shasum":"ee39efb3f2b37b9d567a8f4aa1ac10c920f2332c","tarball":"https://registry.npmjs.org/webcrypto-jwt/-/webcrypto-jwt-0.2.0.tgz","integrity":"sha512-lUfVGNNx+QqU8Z2pxc6x+5l8KeWjCbkoEwSM5Hgxt+GbbZA8ZKGoHZqQqf8N8ShQ0hNpllbiaIUt4bv/eTKHsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEydPgZuj5GFKXe9KgkVV4s6gwkx273iPxkLgOZn4hsGAiBvEBNRDMs44197h29hlBlR5DQEOXSHjY41+qQSeBWX8g=="}]},"directories":{}},"0.2.1":{"name":"webcrypto-jwt","version":"0.2.1","description":"JSON Web Tokens (JWT) verify/sign implementation using W3C Web Cryptography (crypto.subtle).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@github.com:pose/webcrypto-jwt.git"},"keywords":["jwt","jsonwebtoken","w3c","webcrypto","crypto","crypto.subtle"],"author":{"name":"Alberto Pose","email":"albertopose@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/pose/webcrypto-jwt/issues"},"homepage":"https://github.com/pose/webcrypto-jwt","gitHead":"993b17d4b9046b4c4b6ce0fe0f6349696d76b904","_id":"webcrypto-jwt@0.2.1","_shasum":"2a030f4bb62cdab9381c549f60e6180f236d0d9b","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.26","_npmUser":{"name":"pose","email":"albertopose@gmail.com"},"maintainers":[{"name":"pose","email":"albertopose@gmail.com"}],"dist":{"shasum":"2a030f4bb62cdab9381c549f60e6180f236d0d9b","tarball":"https://registry.npmjs.org/webcrypto-jwt/-/webcrypto-jwt-0.2.1.tgz","integrity":"sha512-cnk069B6Aqj/jZebb6x7qQogtvAOpFYDsD5JHnrjldWPZ7zLcPZCMnI6jInX7bvqQwbrkayhUhQiO94I5vwK2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdqvdTXKbNJZjBJ+z/IWwpwETAU/v51Qbut/u2AgRbJwIgIz1Gs0OiazndA9ZoCdVrBRo3eKW3fQz9uY5lfmQ8Wd8="}]},"directories":{}},"0.2.2":{"name":"webcrypto-jwt","version":"0.2.2","description":"JSON Web Tokens (JWT) verify/sign implementation using W3C Web Cryptography (crypto.subtle).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/pose/webcrypto-jwt.git"},"keywords":["jwt","jsonwebtoken","w3c","webcrypto","crypto","crypto.subtle"],"author":{"name":"Alberto Pose","email":"albertopose@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/pose/webcrypto-jwt/issues"},"homepage":"https://github.com/pose/webcrypto-jwt","gitHead":"d417595d85d993fe2b15d3730683a3836ef0741b","_id":"webcrypto-jwt@0.2.2","_nodeVersion":"10.13.0","_npmVersion":"6.9.0","_npmUser":{"name":"pose","email":"albertopose@gmail.com"},"maintainers":[{"name":"pose","email":"albertopose@gmail.com"}],"dist":{"integrity":"sha512-ykmbh97Pf68pI9P/K12pRGPVovY+r0WC+DwdWS93omRYwlaCTSIs20tV7EDny1aHTNaZGFByE4t0fVI7V4OffA==","shasum":"dc21c4e8a78c3e11fe9210d0cd1ce4f8c1151a13","tarball":"https://registry.npmjs.org/webcrypto-jwt/-/webcrypto-jwt-0.2.2.tgz","fileCount":5,"unpackedSize":9834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcsiKiCRA9TVsSAnZWagAALisP+wfjZos0c3hSNinUwhV4\nxXiJy7h/SUtYz0DZ9sB2Cy9apUN3aF126GrNylcF6839OGYa8mHi6enS0Nhj\nltUS3iBmiWz7DiqnIF5ZhLtqIBS7PyNesW3f8IqVxxQT30wb/GthUmstFL5+\nGwavsj5Au9ZG0Xb0zAdDQoTPsyUgEZDrk54+eJJYhg6LDgi5osqqW/6LxhqQ\nTyruefbYoq7fQs87LQmB/ka5WcLPpc4qZWVLegYyUw+kncj1CnFj0bu1ZAsI\nUzL0sUdP9z35S1ZZn8UI4MwTLStetbewIb5G8KYxDG6DR22xH+dpfEynhuil\n2fRS3STCLCpOJmVZkmYP+EJZZzYGbJy4qOfXZVAJ/2Ep1mwC9jlnRKxxOeZT\nPVqIJsrCnqFR4LV+4nSaJa5yhN9vHmreH9zfZ2eStSnylWj+PC9lHHDz0dDL\nGmD3LQPMYBIDOucWICBQVMTp3BvvSTKL3sMTjMgbiK4MgLORnK9GftMlxglp\nCRXbCzMgiRxZkPTK4NT2yNutPVKndb1e4NcVEDnR1kkmXv+Lv9Qs3cHsmusn\nSsGTIzXl7hk6DcdDDGCSxECqS8gfFmA6kAP7THpa+MV8U+EqdzUNMR6fhcHA\nrYy/XyM2s4cnmMkLub5GDToOUB9l4eQE69gvFIZve4Id2KP85rIvbxDGRfs+\nxzh1\r\n=CvDL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEUZnM7SOKXqxNA9BeaVtk+b56n4h836j2oDwTtLUqIVAiEA3W5ZaOpYvj0AnhAO4etMX/xxFPP8sFX+DoFZwQA/QpA="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webcrypto-jwt_0.2.2_1555178145924_0.3047398097669529"},"_hasShrinkwrap":false}},"readme":"### webcrypto-jwt\n\nJSON Web Tokens (JWT) verify/sign implementation using W3C Web Cryptography (crypto.subtle).\n\n#### Browser Support\n\nThe following browsers are supported without shims: IE TP, Firefox 35+ and Chrome 37+. Safari is not currently working. For more information about compatiblity check [web cryptography browser support](http://caniuse.com/#feat=cryptography).\n\n#### Install\n\nWith npm:\n\n```js\nnpm install webcrypto-jwt\n```\n\nor with bower:\n\n```js\nbower install webcrypto-jwt\n```\n\nand then add the following script tag:\n\n```html\n<script src=\"webcrypto-jwt/index.js\"></script>\n```\n\n#### Usage\n\nJWT verification and decoding:\n\n```js\nvar jwt = require('webcrypto-jwt');\n\n// token signed using 'secret' as secret\nvar token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.' +\n  'eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.' +\n  'TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ';\n\njwt.verifyJWT(token, 'secret', 'HS256', function (err, isValid) {\n  console.log(isValid); // true\n});\n\njwt.verifyJWT(token, 'nosecret', 'HS256', function (err, isValid) {\n  console.log(isValid); // false\n});\n\njwt.decodeJWT(token); // '{\"sub\":\"1234567890\",\"name\":\"John Doe\",\"admin\":true}'\n\njwt.parseJWT(token) // Object {sub: \"1234567890\", name: \"John Doe\", admin: true}\n```\n\nJWT signing:\n\n```js\nvar signJWT = require('webcrypto-jwt').signJWT;\n\nsignJWT({foo: 'bar'}, 'secret', 'HS256', function (err, token) {\n  // ey...\n  console.log(token);\n});\n```\n","maintainers":[{"name":"pose","email":"albertopose@gmail.com"}],"time":{"modified":"2022-06-28T23:13:17.705Z","created":"2015-04-25T15:57:31.429Z","0.0.1":"2015-04-25T15:57:31.429Z","0.0.2":"2015-04-25T16:02:58.032Z","0.0.3":"2015-04-25T18:53:16.053Z","0.0.4":"2015-04-25T19:29:36.017Z","0.1.0":"2015-05-12T13:41:17.742Z","0.2.0":"2015-07-22T01:47:26.751Z","0.2.1":"2015-07-22T02:45:38.933Z","0.2.2":"2019-04-13T17:55:46.126Z"},"homepage":"https://github.com/pose/webcrypto-jwt","keywords":["jwt","jsonwebtoken","w3c","webcrypto","crypto","crypto.subtle"],"repository":{"type":"git","url":"git+ssh://git@github.com/pose/webcrypto-jwt.git"},"author":{"name":"Alberto Pose","email":"albertopose@gmail.com"},"bugs":{"url":"https://github.com/pose/webcrypto-jwt/issues"},"license":"MIT","readmeFilename":"README.md"}