{"_id":"@autotelic/envelope-encryptor","_rev":"13-7171424e335f4e0e7fd5c3fcf13ae443","name":"@autotelic/envelope-encryptor","description":"Envelope encryption with configurable KMS","dist-tags":{"latest":"0.6.8"},"versions":{"0.0.1":{"name":"@autotelic/envelope-encryptor","version":"0.0.1","keywords":["envelope","encryption","kms"],"author":{"name":"Autotelic Development Ltd"},"license":"MIT","_id":"@autotelic/envelope-encryptor@0.0.1","maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"homepage":"https://github.com/autotelic/envelope-encryptor#readme","bugs":{"url":"https://github.com/autotelic/envelope-encryptor/issues"},"dist":{"shasum":"1fa219de31e3fdc4c5fde4700c4aadb521113937","tarball":"https://registry.npmjs.org/@autotelic/envelope-encryptor/-/envelope-encryptor-0.0.1.tgz","fileCount":6,"integrity":"sha512-0ZQCT9j3GM4o9cHPV11Y3mg8B6AVD9kZwdwmmVxvF1HlQSAlRCnRFei2w7PiCoaZz6qZipo9VjbWGakZPyOEUg==","signatures":[{"sig":"MEUCIQCzi9QeGxfe0MNHamydNFKRPk0CnjAywkBJDLVxgk/G1wIgYlkwvUKLjZdMoH6HNFBW+XLbsSRlX9ibIKuAgJGLv8I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4142},"main":"index.js","gitHead":"fbbbfb0f95b08d847dbcf8753d7deab6879d6796","scripts":{"fix":"npm run lint -- --fix","lint":"standard","test":"tap --100","validate":"npm run lint && npm run test"},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"repository":{"url":"git+https://github.com/autotelic/envelope-encryptor.git","type":"git"},"_npmVersion":"6.14.15","description":"Envelope encryption with configurable KMS","directories":{},"_nodeVersion":"12.22.6","dependencies":{"aws-sdk":"^2.782.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^14.10.8","sinon":"^9.2.1","standard":"^16.0.0"},"optionalDependencies":{"aws-sdk":"^2.782.0"},"_npmOperationalInternal":{"tmp":"tmp/envelope-encryptor_0.0.1_1632357345083_0.054550289260920204","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@autotelic/envelope-encryptor","version":"0.0.2","keywords":["envelope","encryption","kms"],"author":{"name":"Autotelic Development Ltd"},"license":"MIT","_id":"@autotelic/envelope-encryptor@0.0.2","maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"homepage":"https://github.com/autotelic/envelope-encryptor#readme","bugs":{"url":"https://github.com/autotelic/envelope-encryptor/issues"},"dist":{"shasum":"0436dafb57e61db938a5787f2a1787859348e37a","tarball":"https://registry.npmjs.org/@autotelic/envelope-encryptor/-/envelope-encryptor-0.0.2.tgz","fileCount":6,"integrity":"sha512-w8IM08fd0YUKV70IcnbKlQknl79I6lMYXXyzH1VDtKIs/MasV8WcdsH9XykydFc/JOPLsiwp+eDIR8Flyl9wHQ==","signatures":[{"sig":"MEYCIQDJ2KJRy/gBFY1QX4farBPmAMCkA1I7efBbCfj5pJfqQQIhAKRo+lhIF6TE/tfXkKVBNBkwEe9nf69HpefCbo/98CKI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzGtKCRA9TVsSAnZWagAAu4EQAJXiBBqap/1jzyzwXKxR\nyHv1/m4Z3WY/t3njmOFYMPeiwAeTCDn0GSv3l4iJF2maP89A/b+9fENS7xBv\nRXHaAkSrfIBv0GZd/mr3k6FW/gAoeG2dkZGVymJM8dfaiiu8UYUXapXLnfsa\n4CEehF4ft4LADCM9eCDjt6Ee9a9IU7e7jAAYRemfeNI90XBZO4Po4ITsXZUe\ngDlZaZp1TDRsyrjNy3n3a9Ah/0ydEdiHRQPRP1XBDBao53TgzFYVuCTv0/yB\nbDqYkQz57BkCWyvW+OeTRl0EKmvUQ0AoWwnxOa4iBVr0cP2ZWjTizKN3kK74\nAyOI7czvrj0YiHRRoaZEUlR8wC5c41jp63pSTndbHrxNR+6wqej592zW0WKP\n6hT9ONw78hgwEtzCvBjbNbZ1wOyVGGZlyC4ojhZr7KlSozD8Zt6mGJLrOAd0\nbKugVjf1+UHld03Jhujp1/Q+dVvskq0T5tXxYkjKl0eVOSHMFoDE8c1GsvhA\nASmZzELNRz25KK+nHUNSm8pJbbN9rc388wUcnqJillATCUdxu2IpJleRr0+T\nQrv9RFAObHT2J/ZZrDVlwzzcPPMLs0paLjtP5ur7ejF/ZqPEDmnOp7OYjFHI\nYn64A5uXEw1AP1eVeirkjalzBhT6imL2+1d+5a51A5ekDjbqhJnYCRYgqE++\ne7HC\r\n=//RH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"468657b4ef306a49a773b7c613a4429d3c5f6b1f","scripts":{"fix":"npm run lint -- --fix","lint":"standard","test":"tap --100","validate":"npm run lint && npm run test"},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"repository":{"url":"git+https://github.com/autotelic/envelope-encryptor.git","type":"git"},"_npmVersion":"6.14.15","description":"Envelope encryption with configurable KMS","directories":{},"_nodeVersion":"12.22.6","dependencies":{"aws-sdk":"^2.782.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.10","sinon":"^11.1.2","standard":"^16.0.0"},"optionalDependencies":{"aws-sdk":"^2.782.0"},"_npmOperationalInternal":{"tmp":"tmp/envelope-encryptor_0.0.2_1632513264858_0.33498372573270285","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@autotelic/envelope-encryptor","version":"0.2.0","keywords":["envelope","encryption","kms"],"author":{"name":"Autotelic Development Ltd"},"license":"MIT","_id":"@autotelic/envelope-encryptor@0.2.0","maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"homepage":"https://github.com/autotelic/envelope-encryptor#readme","bugs":{"url":"https://github.com/autotelic/envelope-encryptor/issues"},"dist":{"shasum":"53f71b10f248f8dadff3490b36d567b3486d2055","tarball":"https://registry.npmjs.org/@autotelic/envelope-encryptor/-/envelope-encryptor-0.2.0.tgz","fileCount":5,"integrity":"sha512-LN8YqxFO/MitOrmjNargY4P+2eyxXjVPP6USZ4o8PLW8IVGJOVE+9/azErIHmx5tLBw5tSVgEv6EbGsVIKcH+A==","signatures":[{"sig":"MEUCIHKs7wXNeQbY8ZrJqXyA2TIdhP+3fBNpfPeiUJtbBLDmAiEA4tUObtyS9T7E4R3vs1etNfovsm8VzIILWymRGFk42v0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4631},"main":"index.js","type":"module","types":"index.d.ts","gitHead":"48addf553bccb42a8fe2c8810bde50f5fa5e0aec","scripts":{"fix":"npm run lint -- --fix","lint":"standard","test":"tap --100","validate":"npm run lint && npm run test"},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"repository":{"url":"git+https://github.com/autotelic/envelope-encryptor.git","type":"git"},"_npmVersion":"10.2.4","description":"Envelope encryption with configurable KMS","directories":{},"_nodeVersion":"20.11.1","dependencies":{"@aws-sdk/client-kms":"^3.423.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.10","sinon":"^13.0.0","standard":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/envelope-encryptor_0.2.0_1709920191457_0.31261800966314257","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"@autotelic/envelope-encryptor","version":"0.2.1","keywords":["envelope","encryption","kms"],"author":{"name":"Autotelic Development Ltd"},"license":"MIT","_id":"@autotelic/envelope-encryptor@0.2.1","maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"homepage":"https://github.com/autotelic/envelope-encryptor#readme","bugs":{"url":"https://github.com/autotelic/envelope-encryptor/issues"},"dist":{"shasum":"92be2a80708a4e3ba4a07e07f16166e7947e7f55","tarball":"https://registry.npmjs.org/@autotelic/envelope-encryptor/-/envelope-encryptor-0.2.1.tgz","fileCount":6,"integrity":"sha512-TBS1NGfR45ohQphOpW4JeNtKs8hTMAqLhn23f2swd3/4HssCmWpsi0MPAJ3GIW0JxxZdpNI/n9NtDuvcXXEA6w==","signatures":[{"sig":"MEQCIG06r7B27df2vLVna7Akcs/zzerZl2+MrywYn+bw8zM7AiBTob9ZiGGl5/zZhd681xQfh9uOBY3zFlhui+b8ukIy/A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6111},"main":"index.js","type":"module","types":"index.d.ts","gitHead":"acb1ebdee3c7003ab82756adacc2fe21f28d052e","scripts":{"fix":"npm run lint -- --fix","lint":"standard","test":"tap --100","validate":"npm run lint && npm run test"},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"repository":{"url":"git+https://github.com/autotelic/envelope-encryptor.git","type":"git"},"_npmVersion":"10.2.4","description":"Envelope encryption with configurable KMS","directories":{},"_nodeVersion":"20.11.1","dependencies":{"@aws-sdk/client-kms":"^3.423.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.10","sinon":"^13.0.0","standard":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/envelope-encryptor_0.2.1_1709923676277_0.6662011178296166","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"@autotelic/envelope-encryptor","version":"0.3.0","keywords":["envelope","encryption","kms"],"author":{"name":"Autotelic Development Ltd"},"license":"MIT","_id":"@autotelic/envelope-encryptor@0.3.0","maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"homepage":"https://github.com/autotelic/envelope-encryptor#readme","bugs":{"url":"https://github.com/autotelic/envelope-encryptor/issues"},"dist":{"shasum":"7cbf072ff77625fcf0ff409fd37d9c87cdc57671","tarball":"https://registry.npmjs.org/@autotelic/envelope-encryptor/-/envelope-encryptor-0.3.0.tgz","fileCount":7,"integrity":"sha512-HIdd5ygavhotUAOv+gxxQOnfq5oLW5tJo/OWnF8nWn4uEgj0ppV9eCL6jbHHYI85Acz2PuQCe7F+Xq6CptFciA==","signatures":[{"sig":"MEQCIBUMqPw0u44HCFvu5jIgFFnJIiqFROV1TvJyM2T20vjXAiBRAdDvSxI6WxrrxvYj5Jgv+clAQTI7tfMxKbXNjIk3bg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6671},"main":"index.js","type":"module","types":"index.d.ts","gitHead":"f221332e065b3364614f040a48780894e583a0c7","scripts":{"fix":"npm run lint -- --fix","lint":"standard","test":"tap --100","validate":"npm run lint && npm run test"},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"repository":{"url":"git+https://github.com/autotelic/envelope-encryptor.git","type":"git"},"_npmVersion":"10.2.4","description":"Envelope encryption with configurable KMS","directories":{},"_nodeVersion":"20.11.1","dependencies":{"@aws-sdk/client-kms":"^3.529.1"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.10","sinon":"^13.0.0","standard":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/envelope-encryptor_0.3.0_1710275359487_0.6715332539415193","host":"s3://npm-registry-packages"}},"0.4.1":{"name":"@autotelic/envelope-encryptor","version":"0.4.1","keywords":["envelope","encryption","kms"],"author":{"name":"Autotelic Development Ltd"},"license":"MIT","_id":"@autotelic/envelope-encryptor@0.4.1","maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"homepage":"https://github.com/autotelic/envelope-encryptor#readme","bugs":{"url":"https://github.com/autotelic/envelope-encryptor/issues"},"dist":{"shasum":"4a03d22a5927bc439fd40b751a1f06d68eabadcb","tarball":"https://registry.npmjs.org/@autotelic/envelope-encryptor/-/envelope-encryptor-0.4.1.tgz","fileCount":7,"integrity":"sha512-cZqR08z2Nm3/0EQhvXAnB2u9fAbwyTHR7O95eUZs17B62FP4rL63tsVvzEZkKYUZMZQrB6xdNkdEiLsiJ11PUQ==","signatures":[{"sig":"MEYCIQDU6nzmshLtY8YkgTPoOmqWQoaD9feamKqVtRfYCpkSmQIhAOsYWAg+WUm0vqjrgOXbrtJS0KeQ20BZbWl0dQeAsPhP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6671},"main":"index.js","type":"module","types":"index.d.ts","gitHead":"7e2814f1de9023eecc3da59d77dbe1811be59d5e","scripts":{"fix":"npm run lint -- --fix","lint":"standard","test":"tap --100","validate":"npm run lint && npm run test"},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"repository":{"url":"git+https://github.com/autotelic/envelope-encryptor.git","type":"git"},"_npmVersion":"10.2.4","description":"Envelope encryption with configurable KMS","directories":{},"_nodeVersion":"20.11.1","dependencies":{"@aws-sdk/client-kms":"^3.529.1"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.10","sinon":"^13.0.0","standard":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/envelope-encryptor_0.4.1_1710277311833_0.25080665798398316","host":"s3://npm-registry-packages"}},"0.5.0":{"name":"@autotelic/envelope-encryptor","version":"0.5.0","keywords":["envelope","encryption","kms"],"author":{"name":"Autotelic Development Ltd"},"license":"MIT","_id":"@autotelic/envelope-encryptor@0.5.0","maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"homepage":"https://github.com/autotelic/envelope-encryptor#readme","bugs":{"url":"https://github.com/autotelic/envelope-encryptor/issues"},"dist":{"shasum":"1a8f785e711b2eeb36b84abc12eda1b39fd8c6e9","tarball":"https://registry.npmjs.org/@autotelic/envelope-encryptor/-/envelope-encryptor-0.5.0.tgz","fileCount":7,"integrity":"sha512-46gtbivBNZTHxiDBxACshqzKxn4RL4LuAO9KDEKdfuK/z2LyrYNOQfpjV5Y0Uo1tor7P/1hVNOa5/7i+jfNRog==","signatures":[{"sig":"MEYCIQCqOc+WwBIoCvBVw5xDtlqjvuaIhgI2ral8UX2R9FmpYwIhAN9YA29oGomAv0lF3l8karc+ilgNvmysoUd6gR8ihWtt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6433},"main":"index.js","type":"module","types":"index.d.ts","gitHead":"e01d7e9aa31a0b441e0d4f2eced85fcad1dd8119","scripts":{"fix":"npm run lint -- --fix","lint":"standard","test":"tap --100","validate":"npm run lint && npm run test"},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"repository":{"url":"git+https://github.com/autotelic/envelope-encryptor.git","type":"git"},"_npmVersion":"10.5.0","description":"Envelope encryption with configurable KMS","directories":{},"_nodeVersion":"20.12.1","dependencies":{"@aws-sdk/client-kms":"^3.555.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.10","sinon":"^13.0.0","standard":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/envelope-encryptor_0.5.0_1713211598412_0.1162013949185694","host":"s3://npm-registry-packages"}},"0.5.1":{"name":"@autotelic/envelope-encryptor","version":"0.5.1","keywords":["envelope","encryption","kms"],"author":{"name":"Autotelic Development Ltd"},"license":"MIT","_id":"@autotelic/envelope-encryptor@0.5.1","maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"homepage":"https://github.com/autotelic/envelope-encryptor#readme","bugs":{"url":"https://github.com/autotelic/envelope-encryptor/issues"},"dist":{"shasum":"bc1348fadffb539dd713ad81a5330387608efe38","tarball":"https://registry.npmjs.org/@autotelic/envelope-encryptor/-/envelope-encryptor-0.5.1.tgz","fileCount":7,"integrity":"sha512-PS9wwHxdv2i4Sb0mAuPHasjgsEADUE3riZkGrsG3N9R8HozUJqVPwBXho5ZBN7SIce0nEsl9HE/X2IBa1wXIUQ==","signatures":[{"sig":"MEUCIQD+L+SIBfxSB2mIwHxwn0TF2rfw2NknHnhb/pr+YwsjlgIgT/VTZE79ob5dgjtNPKc5rkId3CfsabvojbhksA/zk48=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6460},"main":"index.js","type":"module","types":"index.d.ts","gitHead":"b6c3ce006361f5d6a5850184a4c82a3c0dfb570b","scripts":{"fix":"npm run lint -- --fix","lint":"standard","test":"tap --100","validate":"npm run lint && npm run test"},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"repository":{"url":"git+https://github.com/autotelic/envelope-encryptor.git","type":"git"},"_npmVersion":"10.5.0","description":"Envelope encryption with configurable KMS","directories":{},"_nodeVersion":"20.12.1","dependencies":{"@aws-sdk/client-kms":"^3.555.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.10","sinon":"^13.0.0","standard":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/envelope-encryptor_0.5.1_1713214823018_0.8606100753130674","host":"s3://npm-registry-packages"}},"0.6.1":{"name":"@autotelic/envelope-encryptor","version":"0.6.1","keywords":["envelope","encryption","kms"],"author":{"name":"Autotelic Development Ltd"},"license":"MIT","_id":"@autotelic/envelope-encryptor@0.6.1","maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"homepage":"https://github.com/autotelic/envelope-encryptor#readme","bugs":{"url":"https://github.com/autotelic/envelope-encryptor/issues"},"dist":{"shasum":"31f37df14d118831a14d04e660b41b408760104f","tarball":"https://registry.npmjs.org/@autotelic/envelope-encryptor/-/envelope-encryptor-0.6.1.tgz","fileCount":7,"integrity":"sha512-AZtA3LbzTRQY1u1JaKZB40mm/At1YFsdbGViZuQACmI1Y2TZJyvLOwzbxCWJy14TpieHYLhR7zsNilOvu4Bjuw==","signatures":[{"sig":"MEYCIQDGXUeRXRumFH1TXTSPrsYTTY1yftm/m0iz6FwkqVNragIhAPY4P/aqVWONU3zK6PnBx9u9AXKshuAsIj/Zt9l0+Voc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6520},"main":"index.js","type":"module","types":"index.d.ts","gitHead":"e97d8c5f88d7114d7ed91d1869b792c4cb30d6ca","scripts":{"fix":"npm run lint -- --fix","lint":"standard","test":"tap --100","validate":"npm run lint && npm run test"},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"repository":{"url":"git+https://github.com/autotelic/envelope-encryptor.git","type":"git"},"_npmVersion":"10.5.0","description":"Envelope encryption with configurable KMS","directories":{},"_nodeVersion":"20.12.2","dependencies":{"@aws-sdk/client-kms":"^3.555.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.10","sinon":"^13.0.0","standard":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/envelope-encryptor_0.6.1_1713906954433_0.9572136417998018","host":"s3://npm-registry-packages"}},"0.6.2":{"name":"@autotelic/envelope-encryptor","version":"0.6.2","keywords":["envelope","encryption","kms"],"author":{"name":"Autotelic Development Ltd"},"license":"MIT","_id":"@autotelic/envelope-encryptor@0.6.2","maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"homepage":"https://github.com/autotelic/envelope-encryptor#readme","bugs":{"url":"https://github.com/autotelic/envelope-encryptor/issues"},"dist":{"shasum":"b3280bcc0a122bcf7b1649dfb12dc6abed04c119","tarball":"https://registry.npmjs.org/@autotelic/envelope-encryptor/-/envelope-encryptor-0.6.2.tgz","fileCount":8,"integrity":"sha512-CSg4IJOR346GRiOXitQV0FtuaVIe1IjI4jCxdGiFfxF2gfP6GbE1h2p8jJGh/2zjRFb+/Z4zfh+ESSJr+qHL3w==","signatures":[{"sig":"MEUCIGcUNDppTo8D1i2tVwZDhXcqdhxWE2meXQc05/lmEr8oAiEA/pdr3sW+b/GQ2CJiRa0mUwi2jh8ygXze1ugHLboOXdY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7659},"main":"index.js","type":"module","types":"index.d.ts","gitHead":"320aae59d5bfdafbfbe174de68875b95e8d4657c","scripts":{"fix":"npm run lint -- --fix","lint":"standard","test":"tap --100","validate":"npm run lint && npm run test"},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"repository":{"url":"git+https://github.com/autotelic/envelope-encryptor.git","type":"git"},"_npmVersion":"10.5.0","description":"Envelope encryption with configurable KMS","directories":{},"_nodeVersion":"20.12.2","dependencies":{"@aws-sdk/client-kms":"^3.555.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.10","sinon":"^13.0.0","standard":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/envelope-encryptor_0.6.2_1713908519936_0.4865072567693758","host":"s3://npm-registry-packages"}},"0.6.5":{"name":"@autotelic/envelope-encryptor","version":"0.6.5","keywords":["envelope","encryption","kms"],"author":{"name":"Autotelic Development Ltd"},"license":"MIT","_id":"@autotelic/envelope-encryptor@0.6.5","homepage":"https://github.com/autotelic/envelope-encryptor#readme","bugs":{"url":"https://github.com/autotelic/envelope-encryptor/issues"},"dist":{"shasum":"018c25ff486c3adfdee63c83422b22351e06788f","tarball":"https://registry.npmjs.org/@autotelic/envelope-encryptor/-/envelope-encryptor-0.6.5.tgz","fileCount":8,"integrity":"sha512-/Pbh8qJtzMLih5YX/FTBMIFe8QxxuksJkF71UoGQ0+etRTwmo8fA8Q0KodK8TFIvSAz+fREXZN7ddLTrKxIDCA==","signatures":[{"sig":"MEUCIGzmpqzc9GB0XVOqkmc6srle2ET9tIi86mvq5UvIVCbhAiEA8vCLV6ZAPGFuKvBjrloOSMIQrzh8XMRTfNj3c+9Y9zo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9793},"main":"index.js","type":"module","types":"index.d.ts","exports":{"import":"./index.js","require":"./index.cjs"},"gitHead":"a08322161d576fe2d9cfd81bf46905efafdda5f8","scripts":{"fix":"npm run lint -- --fix","lint":"standard","test":"tap --100","validate":"npm run lint && npm run test","build:cjs":"rollup index.js --file index.cjs --format cjs","prepublish":"npm run build:cjs"},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"repository":{"url":"git+https://github.com/autotelic/envelope-encryptor.git","type":"git"},"_npmVersion":"10.7.0","description":"Envelope encryption with configurable KMS","directories":{},"_nodeVersion":"20.14.0","dependencies":{"@aws-sdk/client-kms":"^3.555.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.10","sinon":"^13.0.0","rollup":"^4.18.0","standard":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/envelope-encryptor_0.6.5_1719114667483_0.18791007094375067","host":"s3://npm-registry-packages"}},"0.6.8":{"name":"@autotelic/envelope-encryptor","version":"0.6.8","description":"Envelope encryption with configurable KMS","main":"index.js","types":"index.d.ts","type":"module","exports":{"import":"./index.js","require":"./index.cjs"},"scripts":{"fix":"npm run lint -- --fix","lint":"standard","test":"tap --100","build:cjs":"rollup index.js --file index.cjs --format cjs","prepublish":"npm run build:cjs","validate":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/autotelic/envelope-encryptor.git"},"keywords":["envelope","encryption","kms"],"author":{"name":"Autotelic Development Ltd"},"license":"MIT","bugs":{"url":"https://github.com/autotelic/envelope-encryptor/issues"},"homepage":"https://github.com/autotelic/envelope-encryptor#readme","devDependencies":{"rollup":"^4.18.0","sinon":"^13.0.0","standard":"^16.0.0","tap":"^15.0.10"},"dependencies":{"@aws-sdk/client-kms":"^3.555.0"},"_id":"@autotelic/envelope-encryptor@0.6.8","gitHead":"07d1f552be845018f206ef7835533162f383bdb8","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-xDQWxsYZi3IP1o2mcyhs1Ex7GXL5HAwxV5wpTyHLTBR49OSSOH5QOuc4g243CdYHr3HFT+fGvq/jmUHYu+i98Q==","shasum":"98d98863abec5197747e4524e4fd7d84da7b87da","tarball":"https://registry.npmjs.org/@autotelic/envelope-encryptor/-/envelope-encryptor-0.6.8.tgz","fileCount":9,"unpackedSize":13523,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFx8AC1/YtCkBN8IqmQrEMxBTqRNNF5yMVOeCPk8scYkAiBfvTbh88ogNGZL4jAeZEfyuuWin4U5LEmcaYSgSNYMOg=="}]},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/envelope-encryptor_0.6.8_1719256680730_0.8620739702492077"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-23T00:35:45.005Z","modified":"2024-06-24T19:18:01.030Z","0.0.1":"2021-09-23T00:35:45.304Z","0.0.2":"2021-09-24T19:54:25.005Z","0.2.0":"2024-03-08T17:49:51.638Z","0.2.1":"2024-03-08T18:47:56.414Z","0.3.0":"2024-03-12T20:29:19.629Z","0.4.1":"2024-03-12T21:01:52.009Z","0.5.0":"2024-04-15T20:06:38.569Z","0.5.1":"2024-04-15T21:00:23.178Z","0.6.1":"2024-04-23T21:15:54.615Z","0.6.2":"2024-04-23T21:42:00.122Z","0.6.5":"2024-06-23T03:51:07.650Z","0.6.8":"2024-06-24T19:18:00.874Z"},"maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"author":{"name":"Autotelic Development Ltd"},"repository":{"type":"git","url":"git+https://github.com/autotelic/envelope-encryptor.git"},"keywords":["envelope","encryption","kms"],"license":"MIT","homepage":"https://github.com/autotelic/envelope-encryptor#readme","bugs":{"url":"https://github.com/autotelic/envelope-encryptor/issues"},"readme":"# envelope-encryptor\n\n[Envelope encryption](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#enveloping) with configurable KEK (Key Encryption Key) provider.\n\n## Installation\n\n```sh\nnpm install @autotelic/envelope-encryptor\n```\n\n## Usage\n\n### AWS KMS\n\nUsing [AWS KMS](https://docs.aws.amazon.com/kms/latest/developerguide/overview.html)\n\n```js\nimport { createEnvelopeEncryptor, awsKms } from '@autotelic/envelope-encryptor'\n\nconst {\n  AWS_REGION,\n  KMS_KEY_ID,\n  KMS_ACCESS_KEY_ID,\n  KMS_SECRET_ACCESS_KEY\n} = process.env\n\nconst keyService = awsKms(KMS_KEY_ID, {\n  region: AWS_REGION,\n  credentials: {\n    accessKeyId: KMS_ACCESS_KEY_ID,\n    secretAccessKey: KMS_SECRET_ACCESS_KEY\n  }\n})\n\nconst encryptor = createEnvelopeEncryptor(keyService)\n\nconst { encrypt, decrypt } = encryptor\n\nconst {\n  ciphertext,\n  key,\n  salt\n } = await encrypt('plaintext')\n\nconst plaintext = await decrypt({\n  ciphertext: ciphertext.toString(),\n  key,\n  salt\n})\n```\n\n### KEK from an env variable\n\nIf your KEK will be e.g. stored in a secrets manager you can pass\nit as a base64 encoded string. The key length must be 32 bytes,\nyou can generate a suitable one like this:\n`crypto.randomBytes(32).toString('base64')`\n\n```js\nimport { createEnvelopeEncryptor, kekService } from '@autotelic/envelope-encryptor'\n\nconst keyService = kekService(process.env.KEY_ENCRYPTION_KEY)\n\nconst { encrypt, decrypt } = createEnvelopeEncryptor(keyService)\n\nconst {\n  ciphertext,\n  key,\n  salt\n} = await encrypt('plaintext')\n\nconst plaintext = await decrypt({\n  ciphertext: ciphertext.toString(),\n  key,\n  salt\n})\n```\n\n## In development and testing\n\nIf you don't really need to use an actual KEK, e.g. in development or for testing,\nbut you do need to generate DEKs (Data Encryption Key) to work with, there is\na dummy KMS service. The \"encrypted\" key is just a base64 representation of a random buffer.\nThis should definitely not be used in production!\n\n```js\nimport { createEnvelopeEncryptor, dummyKms } from '@autotelic/envelope-encryptor'\n\nconst keyService = dummyKms()\n\nconst { encrypt, decrypt } = createEnvelopeEncryptor(keyService)\n\nconst {\n  ciphertext,\n  key,\n  salt\n} = await encrypt('plaintext')\n\nconst plaintext = await decrypt({\n  ciphertext: ciphertext.toString(),\n  key,\n  salt\n})\n```\n\n## Custom Key Service\n\nYou can implement a custom key service to pass to\n`createEnvelopeEncryptor`. It should be an object that\nprovides two async functions, `getDataKey` and `decryptDataKey`.\n\n`getDataKey` accepts no arguments and should return a\nan object containing the encrypted data encryption key (which has been encrypted by the KEK),\nand the plaintext data encryption key.\n\n`decryptDataKey` accepts an encrypted data key and should\nreturn the plaintext data encryption key.\n\nSee the key service implementations in this module for examples.\n\n\n\n\n\n","readmeFilename":"README.md"}