{"versions":{"0.1.0":{"name":"@oslojs/otp","type":"module","version":"0.1.0","description":"One-time passwords with HOTP and TOTP","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","keywords":["auth","otp","hotp","totp"],"repository":{"type":"git","url":"git+https://github.com/oslo-project/otp.git"},"author":{"name":"pilcrowOnPaper"},"license":"MIT","devDependencies":{"@types/node":"^20.8.6","@typescript-eslint/eslint-plugin":"^6.7.5","@typescript-eslint/parser":"^6.7.5","auri":"^2.0.0","eslint":"^8.51.0","prettier":"^3.0.3","typescript":"^5.2.2","vitest":"^0.34.6"},"dependencies":{"@oslojs/binary":"0.2.0","@oslojs/crypto":"0.2.0","@oslojs/encoding":"0.2.0"},"scripts":{"build":"rm -rf dist/* && tsc --project tsconfig.build.json","format":"prettier -w .","lint":"eslint src","test":"vitest run --sequence.concurrent"},"bugs":{"url":"https://github.com/oslo-project/otp/issues"},"homepage":"https://github.com/oslo-project/otp#readme","_id":"@oslojs/otp@0.1.0","_integrity":"sha512-FEPNUefZdKgx+Zi7Z5HJlUqDRkpPWg1672wsgFhr4LWmdeXgh9/3SPlEnlrrSaWLByvAWU25h45w0gAbDSESfg==","_resolved":"/private/var/folders/qb/z2pf2nq559n552wvjqbjddww0000gn/T/7b53d2a5ec0de82bcc91e82faac2cf76/oslojs-otp-0.1.0.tgz","_from":"file:oslojs-otp-0.1.0.tgz","_nodeVersion":"21.7.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-FEPNUefZdKgx+Zi7Z5HJlUqDRkpPWg1672wsgFhr4LWmdeXgh9/3SPlEnlrrSaWLByvAWU25h45w0gAbDSESfg==","shasum":"35a6c0ebd6d1b9d378e716b6c2ce4fce3aa2b17e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@oslojs/otp/-/otp-0.1.0.tgz","fileCount":11,"unpackedSize":8608,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGNLjR19cLJpWJlttCbTIkT5teNE8naoaKteCKTdcSM3AiA09+/p979kEV1+Hv6tuuRxjlk4AieJqUW2n1CXZPG4EA=="}],"size":3425},"_npmUser":{"name":"anonymous","email":"pilcrowonpaper@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"pilcrowonpaper@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/otp_0.1.0_1715311259118_0.5360366326149886"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-05-10T03:20:59.277Z","publish_time":1715311259277,"_source_registry_name":"default","contributors":[]},"0.1.1":{"name":"@oslojs/otp","type":"module","version":"0.1.1","description":"One-time passwords with HOTP and TOTP","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","keywords":["auth","otp","hotp","totp"],"repository":{"type":"git","url":"git+https://github.com/oslo-project/otp.git"},"author":{"name":"pilcrowOnPaper"},"license":"MIT","devDependencies":{"@types/node":"^20.8.6","@typescript-eslint/eslint-plugin":"^6.7.5","@typescript-eslint/parser":"^6.7.5","auri":"^2.0.0","eslint":"^8.51.0","prettier":"^3.0.3","typescript":"^5.2.2","vitest":"^0.34.6"},"dependencies":{"@oslojs/binary":"0.2.2","@oslojs/crypto":"0.2.0","@oslojs/encoding":"0.3.0"},"scripts":{"build":"rm -rf dist/* && tsc --project tsconfig.build.json","format":"prettier -w .","lint":"eslint src","test":"vitest run --sequence.concurrent"},"bugs":{"url":"https://github.com/oslo-project/otp/issues"},"homepage":"https://github.com/oslo-project/otp#readme","_id":"@oslojs/otp@0.1.1","_integrity":"sha512-HvSiUUnn1lfvnkY9YnVNaTSPLIjGlf9yxo+KPqb1sKbUgGHd4HH3mEgHOhYNAh/nH/xecEoo/GcxGEUXOYdw9w==","_resolved":"/private/var/folders/qb/z2pf2nq559n552wvjqbjddww0000gn/T/37273c900b670ac2dc3c801b3050e650/oslojs-otp-0.1.1.tgz","_from":"file:oslojs-otp-0.1.1.tgz","_nodeVersion":"21.7.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-HvSiUUnn1lfvnkY9YnVNaTSPLIjGlf9yxo+KPqb1sKbUgGHd4HH3mEgHOhYNAh/nH/xecEoo/GcxGEUXOYdw9w==","shasum":"2fd8fc2a83b6cf1e1807bd5581405a5fcdd3a66c","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@oslojs/otp/-/otp-0.1.1.tgz","fileCount":11,"unpackedSize":8564,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxFfdndSmppq37qGG8kV6N3V0knSMWav6JqErv7EG2aAIgL7tl1A+4X2aY4LvTXGJruoyvABJ1B45m9nJclHlpXuA="}],"size":3416},"_npmUser":{"name":"anonymous","email":"pilcrowonpaper@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"pilcrowonpaper@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/otp_0.1.1_1717831839311_0.6423013445748704"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-08T07:30:39.467Z","publish_time":1717831839467,"_source_registry_name":"default","contributors":[]},"0.2.0":{"name":"@oslojs/otp","type":"module","version":"0.2.0","description":"One-time passwords with HOTP and TOTP","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","keywords":["auth","otp","hotp","totp"],"repository":{"type":"git","url":"git+https://github.com/oslo-project/otp.git"},"author":{"name":"pilcrowOnPaper"},"license":"MIT","devDependencies":{"@types/node":"^20.8.6","@typescript-eslint/eslint-plugin":"^6.7.5","@typescript-eslint/parser":"^6.7.5","auri":"^2.0.0","eslint":"^8.51.0","prettier":"^3.0.3","typescript":"^5.2.2","vitest":"^0.34.6"},"dependencies":{"@oslojs/binary":"0.2.2","@oslojs/crypto":"0.2.0","@oslojs/encoding":"0.3.0"},"scripts":{"build":"rm -rf dist/* && tsc --project tsconfig.build.json","format":"prettier -w .","lint":"eslint src","test":"vitest run --sequence.concurrent"},"bugs":{"url":"https://github.com/oslo-project/otp/issues"},"homepage":"https://github.com/oslo-project/otp#readme","_id":"@oslojs/otp@0.2.0","_integrity":"sha512-kDJPp8KphUrNzwpsG13BZlMMNN5p7KSTCKQmKDtE+eVGr9wYtVrdspM3pOnVDocBSaCIMHry1Lsr5kYShOudWw==","_resolved":"/private/var/folders/qb/z2pf2nq559n552wvjqbjddww0000gn/T/5b6b80dca4dad03ca283271b7510da33/oslojs-otp-0.2.0.tgz","_from":"file:oslojs-otp-0.2.0.tgz","_nodeVersion":"21.7.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-kDJPp8KphUrNzwpsG13BZlMMNN5p7KSTCKQmKDtE+eVGr9wYtVrdspM3pOnVDocBSaCIMHry1Lsr5kYShOudWw==","shasum":"828abfe5ac2c514ae338006a61de1b7a9bb51b27","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@oslojs/otp/-/otp-0.2.0.tgz","fileCount":9,"unpackedSize":7336,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAhDcnVqNX5DkeQZn2HX0kY0QCxyMxAKxZwfid8ha3Z7AiBo68GLz7E7kbb4z0ZGAVNYLZM0N2QkBdF2X1NNXhV4iQ=="}],"size":2910},"_npmUser":{"name":"anonymous","email":"pilcrowonpaper@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"pilcrowonpaper@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/otp_0.2.0_1720857564598_0.31633995495820844"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-13T07:59:24.764Z","publish_time":1720857564764,"_source_registry_name":"default","contributors":[]},"0.2.1":{"name":"@oslojs/otp","type":"module","version":"0.2.1","description":"One-time passwords with HOTP and TOTP","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","keywords":["auth","otp","hotp","totp"],"repository":{"type":"git","url":"git+https://github.com/oslo-project/otp.git"},"author":{"name":"pilcrowOnPaper"},"license":"MIT","devDependencies":{"@types/node":"^20.8.6","@typescript-eslint/eslint-plugin":"^6.7.5","@typescript-eslint/parser":"^6.7.5","auri":"^2.0.0","eslint":"^8.51.0","prettier":"^3.0.3","typescript":"^5.2.2","vitest":"^0.34.6"},"dependencies":{"@oslojs/binary":"0.4.0","@oslojs/crypto":"0.6.2","@oslojs/encoding":"0.3.0"},"scripts":{"build":"rm -rf dist/* && tsc --project tsconfig.build.json","format":"prettier -w .","lint":"eslint src","test":"vitest run --sequence.concurrent"},"bugs":{"url":"https://github.com/oslo-project/otp/issues"},"homepage":"https://github.com/oslo-project/otp#readme","_id":"@oslojs/otp@0.2.1","_integrity":"sha512-7x090dFZQ4FUU9fQh2RB5udED+aCEKvwnziRRJbHQDX+h4YiPgPEpJE4nt0WZGIUG6/vs5MPljI+vidp5mOdrQ==","_resolved":"/private/var/folders/qb/z2pf2nq559n552wvjqbjddww0000gn/T/cf6d712b50b53f113e954e34de8f2ebb/oslojs-otp-0.2.1.tgz","_from":"file:oslojs-otp-0.2.1.tgz","_nodeVersion":"21.7.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-7x090dFZQ4FUU9fQh2RB5udED+aCEKvwnziRRJbHQDX+h4YiPgPEpJE4nt0WZGIUG6/vs5MPljI+vidp5mOdrQ==","shasum":"a5ad25eed90436a6dc214e389815a18c2ddee695","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@oslojs/otp/-/otp-0.2.1.tgz","fileCount":9,"unpackedSize":7339,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHNeGn/s43aVyNYQOMOA38iLQUai7jrzWDMnDYyGYphAIhANsGAkvlp7wya6U6AmUGYdvzd8WwBb34xMooRzE2cLBn"}],"size":2909},"_npmUser":{"name":"anonymous","email":"pilcrowonpaper@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"pilcrowonpaper@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/otp_0.2.1_1721792142067_0.7768092330173455"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-24T03:35:42.200Z","publish_time":1721792142200,"_source_registry_name":"default","contributors":[]},"0.2.2":{"name":"@oslojs/otp","type":"module","version":"0.2.2","description":"One-time passwords with HOTP and TOTP","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","keywords":["auth","otp","hotp","totp"],"repository":{"type":"git","url":"git+https://github.com/oslo-project/otp.git"},"author":{"name":"pilcrowOnPaper"},"license":"MIT","devDependencies":{"@types/node":"^20.8.6","@typescript-eslint/eslint-plugin":"^6.7.5","@typescript-eslint/parser":"^6.7.5","auri":"^2.0.0","eslint":"^8.51.0","prettier":"^3.0.3","typescript":"^5.2.2","vitest":"^0.34.6"},"dependencies":{"@oslojs/binary":"0.4.0","@oslojs/crypto":"0.6.2","@oslojs/encoding":"0.3.0"},"scripts":{"build":"rm -rf dist/* && tsc --project tsconfig.build.json","format":"prettier -w .","lint":"eslint src","test":"vitest run --sequence.concurrent"},"bugs":{"url":"https://github.com/oslo-project/otp/issues"},"homepage":"https://github.com/oslo-project/otp#readme","_id":"@oslojs/otp@0.2.2","_integrity":"sha512-EQ/91J+PF4b+c+BFNUCOeQWAlNYSgp/tQIXaEGkQ8td/3iKaogCFX2z45aXukDWYKsqLt2/ogm1b94odC6iyuA==","_resolved":"/private/var/folders/qb/z2pf2nq559n552wvjqbjddww0000gn/T/382e9db5f22fb3cce85fdc0f8fcf2fcf/oslojs-otp-0.2.2.tgz","_from":"file:oslojs-otp-0.2.2.tgz","_nodeVersion":"21.7.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-EQ/91J+PF4b+c+BFNUCOeQWAlNYSgp/tQIXaEGkQ8td/3iKaogCFX2z45aXukDWYKsqLt2/ogm1b94odC6iyuA==","shasum":"b21823efc8650b60ab6536704b7e6e30685849c9","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@oslojs/otp/-/otp-0.2.2.tgz","fileCount":9,"unpackedSize":6802,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAHQqy2X+lpi+s9aylyVXdnzCWJYF5xTvsQ4STo2EljWAiBG5uI9k1Sr2zmA2cKIMVn/Pz0Ksv4A4+j2cyb9Lrk/eg=="}],"size":2641},"_npmUser":{"name":"anonymous","email":"pilcrowonpaper@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"pilcrowonpaper@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/otp_0.2.2_1726632587564_0.659734704006778"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-18T04:09:47.745Z","publish_time":1726632587745,"_source_registry_name":"default","contributors":[]},"1.0.0":{"name":"@oslojs/otp","type":"module","version":"1.0.0","description":"One-time passwords with HOTP and TOTP","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","keywords":["auth","otp","hotp","totp"],"repository":{"type":"git","url":"git+https://github.com/oslo-project/otp.git"},"author":{"name":"pilcrowOnPaper"},"license":"MIT","devDependencies":{"@types/node":"^20.8.6","@typescript-eslint/eslint-plugin":"^6.7.5","@typescript-eslint/parser":"^6.7.5","auri":"^2.0.0","eslint":"^8.51.0","prettier":"^3.0.3","typescript":"^5.2.2","vitest":"^0.34.6"},"dependencies":{"@oslojs/binary":"1.0.0","@oslojs/crypto":"1.0.0","@oslojs/encoding":"1.0.0"},"scripts":{"build":"rm -rf dist/* && tsc --project tsconfig.build.json","format":"prettier -w .","lint":"eslint src","test":"vitest run --sequence.concurrent"},"bugs":{"url":"https://github.com/oslo-project/otp/issues"},"homepage":"https://github.com/oslo-project/otp#readme","_id":"@oslojs/otp@1.0.0","_integrity":"sha512-w/vZfoVsFCCcmsmsXVsIMoWbvr1IZmQ9BsDZwdePSpe8rFKMD1Knd+05iJr415adXkFVyu0tYxgrLPYMynNtXQ==","_resolved":"/private/var/folders/qb/z2pf2nq559n552wvjqbjddww0000gn/T/ec2aefa5efa77d7e45ba5e206d3be59a/oslojs-otp-1.0.0.tgz","_from":"file:oslojs-otp-1.0.0.tgz","_nodeVersion":"21.7.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-w/vZfoVsFCCcmsmsXVsIMoWbvr1IZmQ9BsDZwdePSpe8rFKMD1Knd+05iJr415adXkFVyu0tYxgrLPYMynNtXQ==","shasum":"f21d6bc18a697ec468e2e2eb688b5af4fa8081c4","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@oslojs/otp/-/otp-1.0.0.tgz","fileCount":9,"unpackedSize":6830,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC+uyt/nFZ8hY054eMBztOqIuhu2gqiDnGOBnhVRBHv2AiEAurGuD4Baecs3buFS76WoxDnFr+gsglE0XylcXGMCceE="}],"size":2636},"_npmUser":{"name":"anonymous","email":"pilcrowonpaper@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"pilcrowonpaper@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/otp_1.0.0_1726710592861_0.8411719584385049"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-19T01:49:53.038Z","publish_time":1726710593038,"_source_registry_name":"default","contributors":[]},"1.1.0":{"name":"@oslojs/otp","type":"module","version":"1.1.0","description":"One-time passwords with HOTP and TOTP","main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","keywords":["auth","otp","hotp","totp"],"repository":{"type":"git","url":"git+https://github.com/oslo-project/otp.git"},"author":{"name":"pilcrowOnPaper"},"license":"MIT","devDependencies":{"@types/node":"^20.8.6","@typescript-eslint/eslint-plugin":"^6.7.5","@typescript-eslint/parser":"^6.7.5","auri":"^2.0.0","eslint":"^8.51.0","prettier":"^3.0.3","typescript":"^5.2.2","vitest":"^0.34.6"},"dependencies":{"@oslojs/binary":"1.0.0","@oslojs/crypto":"1.0.0","@oslojs/encoding":"1.0.0"},"scripts":{"build":"rm -rf dist/* && tsc --project tsconfig.build.json","format":"prettier -w .","lint":"eslint src","test":"vitest run --sequence.concurrent"},"_id":"@oslojs/otp@1.1.0","bugs":{"url":"https://github.com/oslo-project/otp/issues"},"homepage":"https://github.com/oslo-project/otp#readme","_integrity":"sha512-tpdxlnCLcY6IZLLqH8kGD8PSvIVyev/+Gbglgvrk9e4YzgKO7+7FL8NWBofL7LZI6MgQ1HnNUuotRG6t1JJ0dg==","_resolved":"/private/var/folders/qb/z2pf2nq559n552wvjqbjddww0000gn/T/b8913a81d7b35c21d7f19a4f3d338187/oslojs-otp-1.1.0.tgz","_from":"file:oslojs-otp-1.1.0.tgz","_nodeVersion":"22.10.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-tpdxlnCLcY6IZLLqH8kGD8PSvIVyev/+Gbglgvrk9e4YzgKO7+7FL8NWBofL7LZI6MgQ1HnNUuotRG6t1JJ0dg==","shasum":"cab5886329b01f57a16372241143c614ac3a757f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@oslojs/otp/-/otp-1.1.0.tgz","fileCount":9,"unpackedSize":7768,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaccYejvt983piBapLUioO8S/t2MWBBQ5SDCMy36HjbAIhALgbw0nK+WFLdIGlSqLgQb41Nl9IipV6KVIdfnuCsK/3"}],"size":2805},"_npmUser":{"name":"anonymous","email":"pilcrowonpaper@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"pilcrowonpaper@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/otp_1.1.0_1733930762770_0.12295598234545535"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-11T15:26:02.984Z","publish_time":1733930762984,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"1.1.0"},"name":"@oslojs/otp","time":{"created":"2024-05-10T10:51:12.911Z","modified":"2024-12-11T18:57:52.022Z","0.1.0":"2024-05-10T03:20:59.277Z","0.1.1":"2024-06-08T07:30:39.467Z","0.2.0":"2024-07-13T07:59:24.764Z","0.2.1":"2024-07-24T03:35:42.200Z","0.2.2":"2024-09-18T04:09:47.745Z","1.0.0":"2024-09-19T01:49:53.038Z","1.1.0":"2024-12-11T15:26:02.984Z"},"readme":"# @oslojs/otp\n\n**Documentation: https://otp.oslojs.dev**\n\nA JavaScript library for generating and verifying OTPs by [Oslo](https://oslojs.dev).\n\nSupports HMAC-based one-time passwords (HOTP) and time-based one-time passwords (TOTP) as defined in [RFC 4226](https://datatracker.ietf.org/doc/html/rfc4226) and [RFC 6238](https://datatracker.ietf.org/doc/html/rfc6238).\n\n- Runtime-agnostic\n- No third-party dependencies\n- Fully typed\n\n```ts\nimport { generateTOTP, verifyTOTP } from \"@oslojs/otp\";\n\nconst totp = generateTOTP(key, 30, 6);\nconst valid = verifyTOTP(totp, key, 30, 6);\n```\n\n## Installation\n\n```\nnpm i @oslojs/otp\n```","users":{}}