{"_id":"@a14313/encryption-utils","_rev":"13-dc42075f9075c9dbefbf7349f0bb13fb","name":"@a14313/encryption-utils","dist-tags":{"latest":"1.3.3"},"versions":{"0.0.2":{"name":"@a14313/encryption-utils","version":"0.0.2","keywords":["encryption","utils","crypto","secure","typescript"],"author":{"name":"https://github.com/A14313"},"license":"MIT","_id":"@a14313/encryption-utils@0.0.2","maintainers":[{"name":"carloautor","email":"carloautor@gmail.com"}],"homepage":"https://github.com/A14313/encryption-utils#readme","bugs":{"url":"https://github.com/A14313/encryption-utils/issues"},"dist":{"shasum":"5b117b10670cc0462551d502260e2a11df342975","tarball":"https://registry.npmjs.org/@a14313/encryption-utils/-/encryption-utils-0.0.2.tgz","fileCount":10,"integrity":"sha512-m9Ld/cOghu+GqYXKXPfvXrSTiGCXUnMDEBd9495NBVVVpOeraRWNcuHSjjZwL/9GSQyn7JUL9UPW0fpBK3m6oA==","signatures":[{"sig":"MEUCIE0+j1vUjNRZllkstLP4UkAxfPWxpW5lgIrA/dX+5waYAiEAlIHKC7Ty9yzmL5Rzn9ydwYEN6mhvpq+dOwru5cuFwIk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11376},"main":"dist/app.js","types":"dist/app.d.ts","gitHead":"1dcfa3e5b1fcf64b3a8f35aa515156ea37cbf7a4","scripts":{"dev":"concurrently -k \"tsup --watch\" \"nodemon dist/app.js\"","test":"echo \"Error: no test specified\" && exit 1","build":"tsup","format":"prettier --write \"src/**/*.{ts,js,json}\""},"_npmUser":{"name":"carloautor","email":"carloautor@gmail.com"},"repository":{"url":"git+https://github.com/A14313/encryption-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"A TypeScript utility for encryption using Node.js crypto","directories":{},"_nodeVersion":"22.16.0","dependencies":{"tsup":"^8.5.0"},"_hasShrinkwrap":false,"devDependencies":{"nodemon":"^3.1.10","prettier":"^3.6.2","typescript":"^5.8.3","@types/node":"^24.1.0","concurrently":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/encryption-utils_0.0.2_1753685742992_0.9828285966389791","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@a14313/encryption-utils","version":"0.1.0","keywords":["encryption","utils","crypto","secure","typescript"],"author":{"name":"https://github.com/A14313"},"license":"MIT","_id":"@a14313/encryption-utils@0.1.0","maintainers":[{"name":"carloautor","email":"carloautor@gmail.com"}],"homepage":"https://github.com/A14313/encryption-utils#readme","bugs":{"url":"https://github.com/A14313/encryption-utils/issues"},"dist":{"shasum":"5c71f412f4c4780aa60df0adad63dceb1fc4d3fd","tarball":"https://registry.npmjs.org/@a14313/encryption-utils/-/encryption-utils-0.1.0.tgz","fileCount":10,"integrity":"sha512-oUO685fRtV/sxNrzqiXbYWe9q4BmIc5muCGaPKCG6Urg1HVA4HBQjrP8YntUqD3dihUDEq4/o0hzJmqDQObeLA==","signatures":[{"sig":"MEMCH0R3wI9Hx8AZ2CpEqvU5u3CbXfSQ//zvOZDEkFy6/ngCIDwItEVqqXUeCq2w5NFFnkWALWmiYwXboNXERVCzf2b0","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18534},"main":"dist/app.js","types":"dist/app.d.ts","gitHead":"f8ab397007b2f92ed2139759cfb1d2671a1d2650","scripts":{"dev":"concurrently -k \"tsup --watch\" \"nodemon dist/app.js\"","test":"echo \"Error: no test specified\" && exit 1","build":"tsup","format":"prettier --write \"src/**/*.{ts,js,json}\""},"_npmUser":{"name":"carloautor","email":"carloautor@gmail.com"},"repository":{"url":"git+https://github.com/A14313/encryption-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"A TypeScript utility for encryption using Node.js crypto","directories":{},"_nodeVersion":"22.16.0","dependencies":{"tsup":"^8.5.0","@a14313/encryption-utils":"^0.0.2"},"_hasShrinkwrap":false,"devDependencies":{"nodemon":"^3.1.10","prettier":"^3.6.2","typescript":"^5.8.3","@types/node":"^24.1.0","concurrently":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/encryption-utils_0.1.0_1753693047981_0.07481770403200505","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@a14313/encryption-utils","version":"0.1.1","keywords":["encryption","utils","crypto","secure","typescript"],"author":{"name":"https://github.com/A14313"},"license":"MIT","_id":"@a14313/encryption-utils@0.1.1","maintainers":[{"name":"carloautor","email":"carloautor@gmail.com"}],"homepage":"https://github.com/A14313/encryption-utils#readme","bugs":{"url":"https://github.com/A14313/encryption-utils/issues"},"dist":{"shasum":"f6de03f9c6049c45ef579a2d617c1b9f83b2becb","tarball":"https://registry.npmjs.org/@a14313/encryption-utils/-/encryption-utils-0.1.1.tgz","fileCount":6,"integrity":"sha512-+5M3nox9vuHul4njsdTlUtJWX6jXpHTDHqnwn0Y7sNQuyZ0xfbaL/nKsGs/wVQrz3UbTAR7Xa6TXMP6LnflrXA==","signatures":[{"sig":"MEYCIQCXSVcw/yfSrouV/cDyR2pTO/LEyInOmD4Xt4MCwax/owIhALO26OmkFd8MPWTai34YF0H48+rejmAgGxz4kPuyvNid","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14971},"main":"dist/app.js","types":"dist/app.d.ts","gitHead":"889ff0c63449491885d77fddf450c856a101a39d","scripts":{"dev":"concurrently -k \"tsup --watch\" \"nodemon dist/app.js\"","test":"echo \"Error: no test specified\" && exit 1","build":"tsup","format":"prettier --write \"src/**/*.{ts,js,json}\""},"_npmUser":{"name":"carloautor","email":"carloautor@gmail.com"},"repository":{"url":"git+https://github.com/A14313/encryption-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"A TypeScript utility for encryption using Node.js crypto","directories":{},"_nodeVersion":"22.16.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","nodemon":"^3.1.10","prettier":"^3.6.2","typescript":"^5.8.3","@types/node":"^24.1.0","concurrently":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/encryption-utils_0.1.1_1753710242660_0.4119647143290812","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@a14313/encryption-utils","version":"0.1.2","keywords":["encryption","utils","crypto","secure","typescript"],"author":{"name":"https://github.com/A14313"},"license":"MIT","_id":"@a14313/encryption-utils@0.1.2","maintainers":[{"name":"carloautor","email":"carloautor@gmail.com"}],"homepage":"https://github.com/A14313/encryption-utils#readme","bugs":{"url":"https://github.com/A14313/encryption-utils/issues"},"dist":{"shasum":"57eebf1a61ded1fd6ef3c00b0de8aef8e0d9d3bb","tarball":"https://registry.npmjs.org/@a14313/encryption-utils/-/encryption-utils-0.1.2.tgz","fileCount":6,"integrity":"sha512-iSYVP3jOxmD2TLExGiUifwfU0utE6MK23o5W0SvYl3B80be0mzodzyyC+qoC+TQ+9aE7Qh2/H+gajZPJ6PKxiw==","signatures":[{"sig":"MEQCIEWaV7VGnNsNdxdetNYYQktEM3N+KPjUnZlj3+7Udy75AiANZdoqMHrM9oZ1Bv6dozWWdGvFhcuUjJoj2M2mFfKXag==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16793},"main":"dist/app.js","types":"dist/app.d.ts","gitHead":"e161ada970c5e9aaaab2c02e46af53cf3e067ac6","scripts":{"dev":"concurrently -k \"tsup --watch\" \"nodemon dist/app.js\"","test":"echo \"Error: no test specified\" && exit 1","build":"tsup","format":"prettier --write \"src/**/*.{ts,js,json}\""},"_npmUser":{"name":"carloautor","email":"carloautor@gmail.com"},"repository":{"url":"git+https://github.com/A14313/encryption-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"A TypeScript utility for encryption using Node.js crypto","directories":{},"_nodeVersion":"22.16.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","nodemon":"^3.1.10","prettier":"^3.6.2","typescript":"^5.8.3","@types/node":"^24.1.0","concurrently":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/encryption-utils_0.1.2_1753751139144_0.23177776892639423","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@a14313/encryption-utils","version":"0.1.3","keywords":["encryption","utils","crypto","secure","typescript"],"author":{"name":"https://github.com/A14313"},"license":"MIT","_id":"@a14313/encryption-utils@0.1.3","maintainers":[{"name":"carloautor","email":"carloautor@gmail.com"}],"homepage":"https://github.com/A14313/encryption-utils#readme","bugs":{"url":"https://github.com/A14313/encryption-utils/issues"},"dist":{"shasum":"d52a183e0387f8e7a4b81c43eb9a249ae1d70cac","tarball":"https://registry.npmjs.org/@a14313/encryption-utils/-/encryption-utils-0.1.3.tgz","fileCount":6,"integrity":"sha512-MV7uWt4WPwruT9jbrBAOof/tg15NEsU+WclPA0FokfPeNfYZ3hDN98TkZGQU0Ek3roJw2zFRrng5z51kggmANw==","signatures":[{"sig":"MEYCIQDY5vVUJSVKJk/6kHsdb9PM2f/7aCZsfmEyY+8nNvCH8QIhANTgVy+md6DwL0pL1xCCjoVLcdr3xWsTAzHpmKIw+MLX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16921},"main":"dist/app.js","types":"dist/app.d.ts","gitHead":"07020500849eee518152394be8bb0517eeda91d4","scripts":{"dev":"concurrently -k \"tsup --watch\" \"nodemon dist/app.js\"","test":"echo \"Error: no test specified\" && exit 1","build":"tsup","format":"prettier --write \"src/**/*.{ts,js,json}\""},"_npmUser":{"name":"carloautor","email":"carloautor@gmail.com"},"repository":{"url":"git+https://github.com/A14313/encryption-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"A TypeScript utility for encryption using Node.js crypto","directories":{},"_nodeVersion":"22.16.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","nodemon":"^3.1.10","prettier":"^3.6.2","typescript":"^5.8.3","@types/node":"^24.1.0","concurrently":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/encryption-utils_0.1.3_1753752947544_0.04013708216586309","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@a14313/encryption-utils","version":"0.1.4","keywords":["encryption","utils","crypto","secure","typescript"],"author":{"name":"https://github.com/A14313"},"license":"MIT","_id":"@a14313/encryption-utils@0.1.4","maintainers":[{"name":"carloautor","email":"carloautor@gmail.com"}],"homepage":"https://github.com/A14313/encryption-utils#readme","bugs":{"url":"https://github.com/A14313/encryption-utils/issues"},"dist":{"shasum":"9b1ad414b6798fb28896c8a32e0f07939b1d1397","tarball":"https://registry.npmjs.org/@a14313/encryption-utils/-/encryption-utils-0.1.4.tgz","fileCount":6,"integrity":"sha512-NStisLP1Ok8KpR0GgvaVUM1jDphfmAyuWqV41yG9SeKQ6NmFbxFPJ+uQxH+n3q7/77n0LRcZW4MmA4mE7FtfLg==","signatures":[{"sig":"MEUCICpgfaRZewbz1xXCAgqQXSllQWgwYqpW24lIi3ZdYJdPAiEAgdRZ/SiN7uTQJlT4izf5lvdXgUVxePC2JWiTCeWTnYQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17630},"main":"dist/app.js","types":"dist/app.d.ts","gitHead":"325927734015d922a832da1defd5361a0716f83c","scripts":{"dev":"concurrently -k \"tsup --watch\" \"nodemon dist/app.js\"","test":"echo \"Error: no test specified\" && exit 1","build":"tsup","format":"prettier --write \"src/**/*.{ts,js,json}\""},"_npmUser":{"name":"carloautor","email":"carloautor@gmail.com"},"repository":{"url":"git+https://github.com/A14313/encryption-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"A TypeScript utility for encryption using Node.js crypto","directories":{},"_nodeVersion":"22.16.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","nodemon":"^3.1.10","prettier":"^3.6.2","typescript":"^5.8.3","@types/node":"^24.1.0","concurrently":"^9.2.0","@changesets/cli":"^2.29.5"},"_npmOperationalInternal":{"tmp":"tmp/encryption-utils_0.1.4_1753757079679_0.4183599021726232","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@a14313/encryption-utils","version":"1.0.0","keywords":["encryption","utils","crypto","secure","typescript"],"author":{"name":"https://github.com/A14313"},"license":"MIT","_id":"@a14313/encryption-utils@1.0.0","maintainers":[{"name":"carloautor","email":"carloautor@gmail.com"}],"homepage":"https://github.com/A14313/encryption-utils#readme","bugs":{"url":"https://github.com/A14313/encryption-utils/issues"},"dist":{"shasum":"6ec71a7282314b866198c0de344bd32cb3700d11","tarball":"https://registry.npmjs.org/@a14313/encryption-utils/-/encryption-utils-1.0.0.tgz","fileCount":6,"integrity":"sha512-TFkDEpyck1PRq1sdfnAObRtWPZxBHSexS5D2tkZcaRvG0oBbnyHEbgDsY2C7pjI3z1OrrxI6g4tgDaC/kv3XAA==","signatures":[{"sig":"MEUCIEk7G3gEO4g2D+cOZicwdd2Sr+JQ4+bnJR/XKTMiMHa1AiEA4dCJKeKob/X6zvyA9MZHlNm1ioET38dUwDxkZioom8Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22909},"main":"dist/app.js","types":"dist/app.d.ts","gitHead":"4094674edbae3d4076fdf6037dcaadeaadca3724","scripts":{"dev":"concurrently -k \"tsup --watch\" \"nodemon dist/app.js\"","test":"echo \"Error: no test specified\" && exit 1","build":"tsup","format":"prettier --write \"src/**/*.{ts,js,json}\""},"_npmUser":{"name":"carloautor","email":"carloautor@gmail.com"},"repository":{"url":"git+https://github.com/A14313/encryption-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"A TypeScript utility for encryption using Node.js crypto","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^4.0.11"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","nodemon":"^3.1.10","prettier":"^3.6.2","typescript":"^5.8.3","@types/node":"^24.1.0","concurrently":"^9.2.0","@changesets/cli":"^2.29.5"},"_npmOperationalInternal":{"tmp":"tmp/encryption-utils_1.0.0_1753926674156_0.9141635833149577","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"@a14313/encryption-utils","version":"1.2.3","keywords":["encryption","utils","crypto","secure","typescript"],"author":{"name":"https://github.com/A14313"},"license":"MIT","_id":"@a14313/encryption-utils@1.2.3","maintainers":[{"name":"carloautor","email":"carloautor@gmail.com"}],"homepage":"https://github.com/A14313/encryption-utils#readme","bugs":{"url":"https://github.com/A14313/encryption-utils/issues"},"dist":{"shasum":"97220a4a1ec2d4f770f11b1e7ca0a743051866c3","tarball":"https://registry.npmjs.org/@a14313/encryption-utils/-/encryption-utils-1.2.3.tgz","fileCount":6,"integrity":"sha512-JfEtVYMnHU3P/9A969ej8Y2gnQHfPyO8+YtBEn8kx8zvp3wrYkVY4c5ae3jcDpqYYWQRDy04Ev9+aIdpdTGt6g==","signatures":[{"sig":"MEYCIQDAwAFhfS14oDKaBAdJEMR9pxygJpR4BlatNOekbfARUgIhAJNl60ZYjaBhOgaWNtMCYYhTSUYWmrqZELuStx1sg69e","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22639},"main":"dist/app.js","types":"dist/app.d.ts","gitHead":"76c301d64cae6560944de8965c1216ef28f0542a","scripts":{"dev":"concurrently -k \"tsup --watch\" \"nodemon dist/app.js\"","test":"echo \"Error: no test specified\" && exit 1","build":"tsup","format":"prettier --write \"src/**/*.{ts,js,json}\""},"_npmUser":{"name":"carloautor","email":"carloautor@gmail.com"},"repository":{"url":"git+https://github.com/A14313/encryption-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"A TypeScript utility for encryption using Node.js crypto","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^4.0.11"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","nodemon":"^3.1.10","prettier":"^3.6.2","typescript":"^5.8.3","@types/node":"^24.1.0","concurrently":"^9.2.0","@changesets/cli":"^2.29.5"},"_npmOperationalInternal":{"tmp":"tmp/encryption-utils_1.2.3_1754308699124_0.5718331737624807","host":"s3://npm-registry-packages-npm-production"}},"1.2.5":{"name":"@a14313/encryption-utils","version":"1.2.5","keywords":["encryption","utils","crypto","secure","typescript"],"author":{"name":"https://github.com/A14313"},"license":"MIT","_id":"@a14313/encryption-utils@1.2.5","maintainers":[{"name":"carloautor","email":"carloautor@gmail.com"}],"homepage":"https://github.com/A14313/encryption-utils#readme","bugs":{"url":"https://github.com/A14313/encryption-utils/issues"},"dist":{"shasum":"8a6d80dabe443d2ad260175a2aaf25ab8b095048","tarball":"https://registry.npmjs.org/@a14313/encryption-utils/-/encryption-utils-1.2.5.tgz","fileCount":6,"integrity":"sha512-fNuR8saCUBiW5AhyylWM1Tbpgz+d6QF9vje179k979H0nTL/N4QhDBDjrs1EcAc2q17Fa6WQGNuS8fZjdzzd3w==","signatures":[{"sig":"MEUCIF0rCsMXOTMhHZEMTtXdkqf8C/qfcieGvIkbXmAy9Bi4AiEAtAyKP2j6pWdvpMs5YHCy4GuGyxJkrXYfPkI1dmZsGLw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25399},"main":"dist/app.js","types":"dist/app.d.ts","gitHead":"d909ec0c9e71fad69e43d3f60179975e45aa6ced","scripts":{"dev":"concurrently -k \"tsup --watch\" \"nodemon dist/app.js\"","test":"echo \"Error: no test specified\" && exit 1","build":"tsup","format":"prettier --write \"src/**/*.{ts,js,json}\""},"_npmUser":{"name":"carloautor","email":"carloautor@gmail.com"},"repository":{"url":"git+https://github.com/A14313/encryption-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"A TypeScript utility for encryption using Node.js crypto","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^4.0.11"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","nodemon":"^3.1.10","prettier":"^3.6.2","typescript":"^5.8.3","@types/node":"^24.1.0","concurrently":"^9.2.0","@changesets/cli":"^2.29.5"},"_npmOperationalInternal":{"tmp":"tmp/encryption-utils_1.2.5_1754619442466_0.9588638931157794","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@a14313/encryption-utils","version":"1.3.0","keywords":["encryption","utils","crypto","secure","typescript"],"author":{"name":"https://github.com/A14313"},"license":"MIT","_id":"@a14313/encryption-utils@1.3.0","maintainers":[{"name":"carloautor","email":"carloautor@gmail.com"}],"homepage":"https://github.com/A14313/encryption-utils#readme","bugs":{"url":"https://github.com/A14313/encryption-utils/issues"},"dist":{"shasum":"d65579396d9a0daa71b9f17ac3785ca9a2b12c4d","tarball":"https://registry.npmjs.org/@a14313/encryption-utils/-/encryption-utils-1.3.0.tgz","fileCount":5,"integrity":"sha512-o0wBxdASe9BVENLie449fIPuFwHuBBiHjLxC7oaX0FrKIXRqnAp2CvKL099SzbmJBR6kC7k84Ulu5Y7dBoyZPw==","signatures":[{"sig":"MEUCIQD9Tgw4ohAwvSJc2xG4RNcBcg7bP8/auWpZmWLQixGlmQIgEdt0ze0E9B4xoNVKsrloiWewIWflT17TWfKqk53pLFI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26201},"main":"dist/app.js","types":"dist/app.d.ts","gitHead":"62829f946ba48a0e4a0dc922d5bf4392f2cda2ca","scripts":{"dev":"concurrently -k \"tsup --watch\" \"nodemon dist/app.js\"","test":"echo \"Error: no test specified\" && exit 1","build":"tsup","format":"prettier --write \"src/**/*.{ts,js,json}\""},"_npmUser":{"name":"carloautor","email":"carloautor@gmail.com"},"repository":{"url":"git+https://github.com/A14313/encryption-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"A TypeScript utility for encryption using Node.js crypto","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^4.0.11"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","nodemon":"^3.1.10","prettier":"^3.6.2","typescript":"^5.8.3","@types/node":"^24.1.0","concurrently":"^9.2.0","@changesets/cli":"^2.29.6"},"_npmOperationalInternal":{"tmp":"tmp/encryption-utils_1.3.0_1756213974685_0.33686889198478775","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"@a14313/encryption-utils","version":"1.3.1","keywords":["encryption","utils","crypto","secure","typescript"],"author":{"name":"https://github.com/A14313"},"license":"MIT","_id":"@a14313/encryption-utils@1.3.1","maintainers":[{"name":"carloautor","email":"carloautor@gmail.com"}],"homepage":"https://github.com/A14313/encryption-utils#readme","bugs":{"url":"https://github.com/A14313/encryption-utils/issues"},"dist":{"shasum":"768a4671d7bf1c00d1d97ec7351dc33f106d213a","tarball":"https://registry.npmjs.org/@a14313/encryption-utils/-/encryption-utils-1.3.1.tgz","fileCount":5,"integrity":"sha512-XMVcFBldEwOXkrcAtIc7TKvZDwZDZOVkk/X9M5KiHBuTesXwz/aEHiQnr2SJvB2q4z1IhE+y1Tg8rsnm/wJ3Kg==","signatures":[{"sig":"MEQCIDyrwpZfTJDvhgVBgaqE1hKubNLEKRMq1RJEFBkl44fiAiBLIEL/Y0qaL51rtV3eN49PUlzR0Sy5XLDC38Ir+P5PCg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26382},"main":"dist/app.js","types":"dist/app.d.ts","gitHead":"1f27065b86fe918ce52b1f65fa66874c2f1f440e","scripts":{"dev":"concurrently -k \"tsup --watch\" \"nodemon dist/app.js\"","test":"echo \"Error: no test specified\" && exit 1","build":"tsup","format":"prettier --write \"src/**/*.{ts,js,json}\""},"_npmUser":{"name":"carloautor","email":"carloautor@gmail.com"},"repository":{"url":"git+https://github.com/A14313/encryption-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"A TypeScript utility for encryption using Node.js crypto","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^4.0.11"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","nodemon":"^3.1.10","prettier":"^3.6.2","typescript":"^5.8.3","@types/node":"^24.1.0","concurrently":"^9.2.0","@changesets/cli":"^2.29.6"},"_npmOperationalInternal":{"tmp":"tmp/encryption-utils_1.3.1_1758516428028_0.44400954020137506","host":"s3://npm-registry-packages-npm-production"}},"1.3.2":{"name":"@a14313/encryption-utils","version":"1.3.2","keywords":["encryption","utils","crypto","secure","typescript"],"author":{"name":"https://github.com/A14313"},"license":"MIT","_id":"@a14313/encryption-utils@1.3.2","maintainers":[{"name":"carloautor","email":"carloautor@gmail.com"}],"homepage":"https://github.com/A14313/encryption-utils#readme","bugs":{"url":"https://github.com/A14313/encryption-utils/issues"},"dist":{"shasum":"1e9637d84340bf26419648a11a633e4f250cbb72","tarball":"https://registry.npmjs.org/@a14313/encryption-utils/-/encryption-utils-1.3.2.tgz","fileCount":5,"integrity":"sha512-q/Ru09Ule7/pjT59snF3S603W6vLO/in186/lTOO5+j06CVdNg3zNU6aAXS78wbbTp8Bb22kq6MUZfHz2gFzng==","signatures":[{"sig":"MEYCIQCXz/AD3PG2g9DEuutoVDLl3dEfID2iS/e73niuy55yagIhAP++lwuQB8Un5896jaEvdEvy0AdaQBfpKBDzX7dsh6XQ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26442},"main":"dist/app.js","types":"dist/app.d.ts","gitHead":"e68119838b0eecdf0c577d109a660c4a5d70778b","scripts":{"dev":"concurrently -k \"tsup --watch\" \"nodemon dist/app.js\"","test":"echo \"Error: no test specified\" && exit 1","build":"tsup","format":"prettier --write \"src/**/*.{ts,js,json}\""},"_npmUser":{"name":"carloautor","email":"carloautor@gmail.com"},"repository":{"url":"git+https://github.com/A14313/encryption-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"A TypeScript utility for encryption using Node.js crypto","directories":{},"_nodeVersion":"22.16.0","dependencies":{"zod":"^4.0.11"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","nodemon":"^3.1.10","prettier":"^3.6.2","typescript":"^5.8.3","@types/node":"^24.1.0","concurrently":"^9.2.0","@changesets/cli":"^2.29.6"},"_npmOperationalInternal":{"tmp":"tmp/encryption-utils_1.3.2_1758522082667_0.16328344252615024","host":"s3://npm-registry-packages-npm-production"}},"1.3.3":{"name":"@a14313/encryption-utils","version":"1.3.3","description":"A TypeScript utility for encryption using Node.js crypto","author":{"name":"https://github.com/A14313"},"license":"MIT","main":"dist/app.js","types":"dist/app.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","dev":"concurrently -k \"tsup --watch\" \"nodemon dist/app.js\"","format":"prettier --write \"src/**/*.{ts,js,json}\"","build":"tsup"},"keywords":["encryption","utils","crypto","secure","typescript"],"devDependencies":{"@changesets/cli":"^2.29.6","@types/node":"^24.1.0","concurrently":"^9.2.0","nodemon":"^3.1.10","prettier":"^3.6.2","tsup":"^8.5.0","typescript":"^5.8.3"},"repository":{"type":"git","url":"git+https://github.com/A14313/encryption-utils.git"},"bugs":{"url":"https://github.com/A14313/encryption-utils/issues"},"homepage":"https://github.com/A14313/encryption-utils#readme","dependencies":{"zod":"^4.0.11"},"peerDependencies":{"typescript":">=4.7"},"peerDependenciesMeta":{"typescript":{"optional":true}},"engines":{"node":">=18.0.0"},"engineStrict":true,"_id":"@a14313/encryption-utils@1.3.3","gitHead":"7872aec981f20735097c721b812b3587a41fe910","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-/b3eMmJ+iz0ZiRnQlNs1f/DyAJQlGGhpaHOfzWXByFRMFk9+e0A1+DkRLqkt+OekHdGeQDX1U9S9712hCdrW1g==","shasum":"f99d3ac16ad8b5194dcb8907d8d258ac7f25ed52","tarball":"https://registry.npmjs.org/@a14313/encryption-utils/-/encryption-utils-1.3.3.tgz","fileCount":5,"unpackedSize":26628,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIECyGfGfyeW/lLSMMFl2swDGuM3F5CSXCAT48I0zBDqCAiBxipWwNURuZEY6gDBJ/8lAvHIR7YvzYvK0valLNyz/og=="}]},"_npmUser":{"name":"carloautor","email":"carloautor@gmail.com"},"directories":{},"maintainers":[{"name":"carloautor","email":"carloautor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/encryption-utils_1.3.3_1758526008166_0.27089286576009086"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-28T06:55:42.851Z","modified":"2025-09-22T07:26:48.530Z","0.0.2":"2025-07-28T06:55:43.153Z","0.1.0":"2025-07-28T08:57:28.175Z","0.1.1":"2025-07-28T13:44:02.846Z","0.1.2":"2025-07-29T01:05:39.296Z","0.1.3":"2025-07-29T01:35:47.731Z","0.1.4":"2025-07-29T02:44:39.857Z","1.0.0":"2025-07-31T01:51:14.332Z","1.2.3":"2025-08-04T11:58:19.300Z","1.2.5":"2025-08-08T02:17:22.650Z","1.3.0":"2025-08-26T13:12:54.880Z","1.3.1":"2025-09-22T04:47:08.218Z","1.3.2":"2025-09-22T06:21:22.854Z","1.3.3":"2025-09-22T07:26:48.334Z"},"bugs":{"url":"https://github.com/A14313/encryption-utils/issues"},"author":{"name":"https://github.com/A14313"},"license":"MIT","homepage":"https://github.com/A14313/encryption-utils#readme","keywords":["encryption","utils","crypto","secure","typescript"],"repository":{"type":"git","url":"git+https://github.com/A14313/encryption-utils.git"},"description":"A TypeScript utility for encryption using Node.js crypto","maintainers":[{"name":"carloautor","email":"carloautor@gmail.com"}],"readme":"[![npm version](https://img.shields.io/npm/v/@a14313/encryption-utils)](https://www.npmjs.com/package/@a14313/encryption-utils)\n\n# @a14313/encryption-utils\n\nA lightweight and easy-to-use encryption/decryption utility for Node.js using AES (default `aes-256-cbc`) and the built-in `crypto` module.\n\n---\n\n## Changelogs\n\nCheck the [Changelogs](https://github.com/A14313/encryption-utils/blob/main/CHANGELOG.md)\n\n## ✨ Features\n\n- AES-256-CBC encryption by default (customizable)\n- Supports configurable encoding, key length, password, salt, and IV size\n- Simple API for encrypting and decrypting string payloads\n- Uses the `scryptSync` for generation of key\n- Written in TypeScript\n\n---\n\n## 📦 Installation\n\n### npm\n\n```bash\nnpm install @a14313/encryption-utils\n```\n\n### pnpm\n\n```bash\npnpm install @a14313/encryption-utils\n```\n\n## Usage\n\n## 🔧 Cryptography Options Table\n\n> encrypt(payload: string, options)\n\n> decrypt(payload: string, iv: string, options)\n\n### `options`\n\n| Option              | Type                             | Required | Default            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Usage                        |\n| ------------------- | -------------------------------- | -------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- |\n| `algorithm`         | `string`                         | No       | aes-256-cbc        | Encryption algorithm (e.g., `'aes-256-cfb'`).                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Both                         |\n| `password`          | `string`                         | Yes      | -                  | Password is not required if `staticKey` and `staticKeyEncoding` is provided. Password is used to derive the encryption/decryption key.                                                                                                                                                                                                                                                                                                                                                                         | Both                         |\n| `salt`              | `string`                         | Yes      | -                  | Salt is not required if `staticKey` and `staticKeyEncoding` is provided. Salt used in key derivation.                                                                                                                                                                                                                                                                                                                                                                                                          | Both                         |\n| `staticKey`         | `string`                         | Yes      | -                  | staticKey is not required if the `password` and `salt` is provided. Static key is used for generating a cipher. <br /> Make sure to generate your **own** key and use `hex` or `base64` encoding when setting this.                                                                                                                                                                                                                                                                                            | Both                         |\n| `staticKeyEncoding` | `hex` \\| `base64`                | Yes      | -                  | staticKeyEncoding is not required if the `password` and `salt` is provided. Sets the encoding of the provided `staticKey`.                                                                                                                                                                                                                                                                                                                                                                                     | Both                         |\n| `keyLength`         | `number`                         | No       | 32                 | Length of the derived key in bytes (`16`, `24`, `32`, etc.). Depending on the algorithm you set, you should set the `keyLength` accordingly.<br /> Recommended to use the default `algorithm` and `keyLength`.                                                                                                                                                                                                                                                                                                 | Both                         |\n| `staticIV`          | `string`                         | No       | Random 16 bytes IV | When setting `staticIV` make sure to generate your **own** `16 bytes` IV with either `hex` or `base64` encoding.<br /><br />WARNING⚠️: Setting a static IV is vulnerable to [identical plaintext blocks](https://www.sciencedirect.com/topics/computer-science/plaintext-block). When the `staticIV` is set, the encrypted data will become predictable because it will produce identical blocks.<br />It is recommended to use the default instead. Just don't use this property and it will set the default. | Encryption only              |\n| `staticIVEncoding`  | `hex` \\| `base64`                | No       | -                  | Sets the encoding of the provided `staticIV`                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Encryption only              |\n| `encodingInput`     | `'utf8'`                         | No       | `'utf8'`.          | Encoding of the input string. For encryption, `utf8`. For decryption `hex`                                                                                                                                                                                                                                                                                                                                                                                                                                     | Both                         |\n| `encodingOutput`    | `'hex'` \\| `'base64'`            | No       | `'hex'`.           | Output format of the encrypted string. For decryption it is default to `utf8`. For encryption, you can choose between `hex` or `base64` as the output string.                                                                                                                                                                                                                                                                                                                                                  | Both                         |\n| `IVEncodingInput`   | `'hex'` \\| `'base64'`            | No       | `'hex'`.           | Sets the encoding format of the provided IV used for decryption. WARNING⚠️: Make sure to use the correct encoding of the provided IV. If you use the `staticIV` on encryption as `base64`, the `IVEncodingInput` must be `base64` also.                                                                                                                                                                                                                                                                        | Decryption only              |\n| `includeLogs`       | `boolean`                        | No       | `false`            | If set to `true` this will log the arguments that has been passed on the function.                                                                                                                                                                                                                                                                                                                                                                                                                             | Both                         |\n| `ivSize`            | `number`                         | No       | 16                 | Size of the IV in bytes (usually `16` for AES) Deprecated. Check the [1.3.0](https://github.com/A14313/encryption-utils/blob/main/CHANGELOG.md#130)                                                                                                                                                                                                                                                                                                                                                            | Encryption only (Deprecated) |\n| `type`              | `'encryption'` \\| `'decryption'` | No       | -                  | Operation mode to perform. This is for type discrimination. The type discrimination is managed internally. Check the [1.2.0](https://github.com/A14313/encryption-utils/blob/main/CHANGELOG.md#120)                                                                                                                                                                                                                                                                                                            | Both (Deprecated)            |\n\n---\n\n### 🔐 Encryption\n\nFor commonJS<br />\n`const { encrypt } = require('@a14313/encryption-utils');`\n\n```TS\nimport { encrypt } from '@a14313/encryption-utils';\n\nconst encrypted = encrypt('hello world', {\n    password: 'strong-password',\n    salt: 'unique-salt',\n});\n\n// RETURN:\n// {\n//     message: 'Encrypted successfully',\n//     iv: '33eeecbb0867738956153ebae70307e9',\n//     value: 'c63033f6b55bbb8b194626b903d986a0'\n// }\n\n```\n\nDont worry about the `iv` being returned. It is needed for decrypting the data on your other service. Even when an attacker gets the `iv`, it is unique in every encryption 😉. This prevents the producing of `identical plaintext blocks` [_Learn more about plaintext blocks_](https://www.sciencedirect.com/topics/computer-science/plaintext-block). <br />\nPlus, the attacker needs the password and salt. So keep it on the secrets manager or .env.\n\n### 🔓 Decryption\n\nFor commonJS<br />\n`const { decrypt } = require('@a14313/encryption-utils');`\n\n```TS\nimport { decrypt } from '@a14313/encryption-utils';\n\n// Pass the generated \"iv\" from the encrypted data to the decrypt function or to the service that is decrypting the data. It's like a public key, kind of 😅. The iv will be used to decrypt the data.\n\nconst decrypted = decrypt(encrypted.value, encrypted.iv, {\n    password: 'strong-password',\n    salt: 'unique-salt',\n});\n\n// RETURN: hello world\n```\n\n### More examples\n\nMost of the time you wanna encrypt more complicated data types other than string.<br />\nWhat if you want to encrypt a data other than string? A number, boolean, object, array, etc. <br />\nPlace it on an object 😎.\n\n### 🔐 Encryption\n\n```TS\nconst sampleObject = {\n    stringType: 'Hello, world!',\n    numberType: 42,\n    booleanType: true,\n    nullType: null,\n    objectType: {\n        nestedKey: 'nestedValue',\n    },\n    arrayType: [1, 'two', false, null],\n    dateType: new Date(),\n};\n```\n\nThen, stringify the object:\n\n```TS\nconst encrypted = encrypt(JSON.stringify(sampleObject), {\n    password: 'test',\n    salt: 'salty',\n});\n```\n\nReturn:\n\n```bash\n{\n    message: 'Encrypted successfully',\n    iv: '3aa2876e83c2b7d232a26ae09070bc00',\n    value: '0e7c40d896dfb13f93dfcfc67e0f1b64c458abe44405e005240a6f53a8596df8955a143e740f5e1a4f9c34ed646c356239ce4df67433812212bde4af29820361374bfee977aea02ff0b62db43959859a60d2d7a98ce3a420c08981b4e189810e8913eb9ab0dac62ff9d32e64a373c9317cf548bfdf0fdd7cf34ec78018db7118dcb9612399a0fd3cdc8c5e6a89b92f1d2fedc6478298f3c425a57b4ab82dd9bdd41b8dc72bc2e9aa65606282d240a037111ac1ec1364269c188b244275942a0c17f7c052f67569c4ef7ccb604d263348b7037a0b4f130182cfe0917d1fbcc1fd'\n}\n```\n\n### 🔓 Decryption\n\n```TS\nconst decrypted = decrypt(encrypted.value, encrypted.iv, {\n    password: 'test',\n    salt: 'salty',\n});\n```\n\nThen, parse the returned string 😎:\n\n```TS\nconsole.log(JSON.parse(decrypted));\n```\n\nReturn:\n\n```bash\n{\n    stringType: 'Hello, world!',\n    numberType: 42,\n    booleanType: true,\n    nullType: null,\n    objectType: { nestedKey: 'nestedValue' },\n    arrayType: [ 1, 'two', false, null ],\n    dateType: '2025-07-29T00:43:36.885Z',\n}\n```\n\n## 🚨 Important\n\n> Generate a strong password and salt using crypto and save it on your environment (.env) or secrets manager (recommended).\n\n### How to generate a secure password and salt\n\n_You should have a [NodeJS](https://nodejs.org/en) or [NVM](https://github.com/nvm-sh/nvm/blob/master/README.md) installed on your machine._\n\n1. Open terminal\n2. type `node`. This will enter the node REPL.\n3. Type this: `console.log(require('crypto').randomBytes(32).toString('hex'))`\n4. It will return something like this: `c02e74c1c3f829e13b298361c39e9df263dc5efb16d0639f00255a86863447e0`\n5. Copy it and save on your secrets.\n6. Do the same for the salt.\n\n_Note: For passwords it is recommended to have `32` bytes for the length, and `16` bytes for the salt._\n\nThe generated `password` and `salt` for encryption should be the same on the service that is decrypting the data, otherwise it will fail.\n\n_**Always put the passwords, salts, and secrets on the environment**_\n\n---\n\n### Happy HACKING 😉\n\nMade by developer for developer. Made with love ❤️\n","readmeFilename":"README.md"}