{"_id":"@alphatr/maze","_rev":"8-dfd19d0dc0a2d57d440c327d752e8e5f","name":"@alphatr/maze","dist-tags":{"latest":"1.2.3"},"versions":{"1.0.0":{"name":"@alphatr/maze","version":"1.0.0","author":{"name":"AlphaTr","email":"alphatr@alphatr.com"},"license":"MIT","_id":"@alphatr/maze@1.0.0","maintainers":[{"name":"alphatr","email":"alphatr@alphatr.com"}],"dist":{"shasum":"de55187c3b9537eeab02d20b771c5bf7c750a744","tarball":"https://registry.npmjs.org/@alphatr/maze/-/maze-1.0.0.tgz","fileCount":6,"integrity":"sha512-X+FYehQRdz3MsNlzNEooYP/PCpQjTcQbd35UazvjldcirDm25ZrUNiPwR6zhLXpNfe+qMsLBZxFlXyGBZR1g7g==","signatures":[{"sig":"MEQCID37KIxSHNkXArFUG2esN5MqV+CC0IhJXyZN0LuO6waqAiAvldj/1hIEa9uooHcTPzeERjVCiFCiOe6lxDGDqVtBIg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4206,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7xqtCRA9TVsSAnZWagAAsIkP/0dQp5pLN+did85lCy8a\nszOw5vjlmQcso7qMySa1kuuFLYmWw1syz97040zOdjLJXqzFPvNir85/7McH\nUL4xAWqkiHfqKKJgd29ahbgRphLVxpNr87mxv4L5ktYBx9NA3hhwT9GgzipC\nE+in1VWy79HijfstGyfEjXuzUc0AObEQz90sgTJ2yNkT6eQJ1Gltchl17K6m\nOuAOfxgOcC/DFKDL3rSXHGzHBoyKYi5g/cNPbiNqX+dKUzMgFSVg0qYsv6mZ\n3nMSrJkDQYkAXysR1ubyBBsQsDl/Hj7RcS9mHT4nXNLPeoveZGBw2YP6hwCc\nJ9yWkriaAJyYRbEzQ5YKyq7CLaSNoSlK9kb6SpL6CDqnKrWK3s6k/mHUUxqV\ncnu9pTmsPg8pYPMOL1NAqvV3aKrKIZ1JIrQ6YVLjHnNJ1e1M6QYqT2Ri4U0e\nc5b7jfTsAS6hpKKpzDONrqn3xbXFluASBDrubk9DPaj0B0TBhsqvhHLOxMG1\niy0L5egDqh4R2v5qB3r4UEViBIx27iVhbBVSkua+L615FmxnK4PecnyAjjNL\nRMtBgkZyIvpKG9Ql+nBM0pE3VOgEyyFR2FKL/EISDTfVx3SknwLnVwpVitFR\nE6dmHNUNxh1yaPy0RJnWBL1/QXXsl3xt6sM2FxySy5hE8B8D/1iaVm6F+NWC\nMWBA\r\n=bFLq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"0eb6c4cbe67d04b62bebd3d2a91bb365eb87326a","_npmUser":{"name":"alphatr","email":"alphatr@alphatr.com"},"_npmVersion":"6.0.0","description":"random password","directories":{},"_nodeVersion":"8.11.1","dependencies":{"md5.js":"^1.3.4","punycode":"^2.1.0","url-parse":"^1.4.0","bignumber.js":"^7.0.1","@alphatr/publicsuffix":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^4.19.1","@alphatr/eslint-config-node":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/maze_1.0.0_1525619372422_0.9500642114182904","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@alphatr/maze","version":"1.1.0","author":{"name":"AlphaTr","email":"alphatr@alphatr.com"},"license":"MIT","_id":"@alphatr/maze@1.1.0","maintainers":[{"name":"alphatr","email":"alphatr@alphatr.com"}],"dist":{"shasum":"6eb116fe08ac0e562750f2ba12436dbc7178c0f5","tarball":"https://registry.npmjs.org/@alphatr/maze/-/maze-1.1.0.tgz","fileCount":7,"integrity":"sha512-AXGWxb1QM6+2Zzu5MqdvD8KyDy2VzHXJTnXAVxVUnM6hJ2FmIi1nywN9rSgTMjbgJVkMEKlhFCVeb+HAL1lhZw==","signatures":[{"sig":"MEQCIF6CW0et+mUwhRIRSt/09wQVNvmo4gdiTZLKWwFzga+vAiA6w9qB/S+GKhk1Q5j7fXLi6oo/Rptd9Qw5xpHpav1YCg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4479,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9n2+CRA9TVsSAnZWagAAzHUP+wdAVO+LjMzp89OvQ2Ha\nJJoRQtt9mwh6FRTsIBEk/LoNCPndVBZSfN8I7BKXtW2SUc4ElbxHV6YzAB0/\nGudlPCoBE7D+iMj5FEIwONhBDXSOiuyuh72tlRnKWaeVU0EOZMhwIw2INIqf\n9/ZQ3wdZ8M45jlnTklJ7tuWSpXkbwPJdMyYKcOyD2Fegak+KJT0qxgWxiTeG\n8atgJBC1hNhZdk7Bq4jfbJIXx7kKQrAXYFNWzkLGe+BFDaz3nTX7ZyqA13dJ\nasP4fNcL3Wz2B4rbiBnQyuFxQPOR6SXAZnEiHBmn+0NVz2CMY8bp69PgDmsB\nGnwqZn58jiTXl01O/IANSur1y/cZD03Gswmuy10ayzHQcNUFo7DVu92glBv2\nT2+fFSg4hZRdZrAyYtEwq7mJyC7MijiV02Zp9uPdoH8mwSezlcZS04WStkQk\npqrZDPRroSx+rABVniRuIWY/ERp3UUOfQYZlTEYrLQYfqzwqyx1RC1qp1o1m\nTFeErkhu6COwULOquuw9i0f8LE31UEob7DxCK1QYBTw7dTUrFtlNZnI7aJNG\naHRT9YmP6cRWmaDVqVZnH4Yt2zjifFZp5lEOLcus4KoS9dNyV+vN88YXRPO0\niNxQ08ve6nR/gMBvmaLUkWLmPccYc/TdrwoTKKrORXnQxi88y2MngnQrHh6X\nEdPm\r\n=4awb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"f9b0065543cd48a182e59e49a4f12aac8894f6ee","_npmUser":{"name":"alphatr","email":"alphatr@alphatr.com"},"_npmVersion":"6.0.0","description":"random password","directories":{},"_nodeVersion":"8.11.1","dependencies":{"md5.js":"^1.3.4","punycode":"^2.1.0","url-parse":"^1.4.0","bignumber.js":"^7.0.1","@alphatr/publicsuffix":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^4.19.1","@alphatr/eslint-config-node":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/maze_1.1.0_1526103485861_0.4587362028641184","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@alphatr/maze","version":"1.1.1","author":{"name":"AlphaTr","email":"alphatr@alphatr.com"},"license":"MIT","_id":"@alphatr/maze@1.1.1","maintainers":[{"name":"alphatr","email":"alphatr@alphatr.com"}],"dist":{"shasum":"cc4a2eb1fc5056b1ef709edcebbf5cc5841a342c","tarball":"https://registry.npmjs.org/@alphatr/maze/-/maze-1.1.1.tgz","fileCount":7,"integrity":"sha512-S7on7nbPpwALe3qnxEA1wTM0YZ1Zh6HmwOnRML/AbcGRBX+xYPVr6mB4Pg53tj4q5QgOZ0OgaBM2J0vu/3zSRQ==","signatures":[{"sig":"MEUCIQDHy4Qw3NIVeZ2nHR9ih/gVAej6wMO/yRiqJzo/WCQ6KQIgcpS6XaUS+fJYgg8nWUAo4hO16WUYiYwoxA+3uG2ZXX8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9ofLCRA9TVsSAnZWagAAxbQP/3fJSkrP38jUwfIEuw34\n/Sc0sS4P8ArTVwD1Ur5Q1UGeUymjhIHzyIMGapLr5f4CDsz9GCwSzEqfk372\nOqLHi27waWGTT4Qka+AHUaMJaZ12w91hyeV1Uz9lOp+OeMRgv5pBEqilk2R8\n6emzRxhuD9ZK5P0GkSiBBo5ynDquF6cvgEff+bU4WEHbLIgAAT5TJ873NmnK\nsYHhxN73OOlsfzL7Vkq3yon3FRcXlnBhToLrM+SU5M/u6p/+C6le0FHeybmW\n73EKM4J/TsCSeT2EyiNVKBgTEc/cpuLSpqreb1wZ/hmAB1jSyOeI3ZvNL7mq\njjGhYnFs+86bd+4OfmYEGHrG2j5FYjBDCcQh1r5iqiVbilxpvMFBsyd6kLMS\n92ALU/fvNAOO495vithYx+Si4D63NmZvE3/ESu4GDKNNyawplFY3q3D97ZAr\nyBr5z78wNA+p4c97uxJg9hKQ87U7vz0Phid0IPIJlACNKKQNZAmEEb41Kl6U\nU7/70wuEZ2S2EAKSrFNukBGKu7B/EXzShyH+XqSreoLh8IKMEyqTuvUe9BPs\nsBJ13zme+Kw2gMi8n1kjKja2kRKM4sqYoij2XEwnybxzhZbNY9jE4razJwcz\nQ+cSWEONo71rdhblBZlOjyZkjx31llbv9HmDiPfj8YMuur4fUX1I7Fc/Xy86\n2RZo\r\n=klLN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"575c2a452cfb6a6b5a3eb3ce621f6d1c63dd441e","_npmUser":{"name":"alphatr","email":"alphatr@alphatr.com"},"_npmVersion":"6.0.0","description":"random password","directories":{},"_nodeVersion":"8.11.1","dependencies":{"md5.js":"^1.3.4","punycode":"^2.1.0","url-parse":"^1.4.0","bignumber.js":"^7.0.1","@alphatr/publicsuffix":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^4.19.1","@alphatr/eslint-config-node":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/maze_1.1.1_1526106059332_0.6360607337815396","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@alphatr/maze","version":"1.2.0","author":{"name":"AlphaTr","email":"alphatr@alphatr.com"},"license":"MIT","_id":"@alphatr/maze@1.2.0","maintainers":[{"name":"alphatr","email":"alphatr@alphatr.com"}],"dist":{"shasum":"ed295423972f2aa20e33d096d7f212b131930318","tarball":"https://registry.npmjs.org/@alphatr/maze/-/maze-1.2.0.tgz","fileCount":12,"integrity":"sha512-4apYtJIhUCLVpXb5iurdb8ysDQaD4+poSMYfQ5z0bcrNtYRdS1b2iql6Sz0jK/fRQobbwnsrxJLu24eSqE+Zaw==","signatures":[{"sig":"MEYCIQC4z4qQ4dekIk55/VlXMVK8qDJjmLf9EvAdJlyQB0Sb8QIhAIKAtAzSGTc1IOBBf5dmVaS41O4ObkdBEBuYWTJc4fVF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7333},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"9ed90c1835399feba2da91077e14b8298ec09a75","scripts":{"test":"tsx tests/index.ts","build":"tsdown","oxfmt":"oxfmt src","oxlint":"oxlint --config oxlint.config.ts src","prepublishOnly":"npm run build"},"_npmUser":{"name":"alphatr","email":"alphatr@alphatr.com"},"_npmVersion":"11.12.1","description":"random password","directories":{},"_nodeVersion":"24.15.0","dependencies":{"punycode":"^2.3.1","@noble/hashes":"^1.7.2","@alphatr/publicsuffix":"^1.2.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.22.4","oxfmt":">=0.51.0 <1.0.0","oxlint":"^1.66.0","tsdown":"^0.22.0","typescript":"^6.0.0","@types/node":"^25.9.3","@types/punycode":"^2.1.4","@telematrix/oxfmt-config":"^0.1.1","@telematrix/oxlint-config-base":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/maze_1.2.0_1781698716444_0.17653676185486278","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@alphatr/maze","version":"1.2.1","author":{"name":"AlphaTr","email":"alphatr@alphatr.com"},"license":"MIT","_id":"@alphatr/maze@1.2.1","maintainers":[{"name":"alphatr","email":"alphatr@alphatr.com"}],"dist":{"shasum":"ca6f5a002b2d49a3e285d81c69aa22777a520c75","tarball":"https://registry.npmjs.org/@alphatr/maze/-/maze-1.2.1.tgz","fileCount":6,"integrity":"sha512-Z3leecCrtBfwkr8aFiiKK4Kw05QJ77hkajoOleE1hAHl8LzSxt+7Dgdobm2aEVANTM236Rt46dmca3wt9soX9w==","signatures":[{"sig":"MEQCIBjimduW/G9tJjvqv7AXOpaM02XOgPDxHJQrOP2JLkmHAiB9OGdD2LRuVoFYlhtqfN05zBFyymCNMEXnOSFeC2Ldtg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13759},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"cc36e4a80cc48e9de26d11bedfa51e691b703174","scripts":{"test":"tsx tests/index.ts","build":"tsdown","oxfmt":"oxfmt src","oxlint":"oxlint --config oxlint.config.ts src","prepublishOnly":"npm run build"},"_npmUser":{"name":"alphatr","email":"alphatr@alphatr.com"},"_npmVersion":"11.12.1","description":"random password","directories":{},"_nodeVersion":"24.15.0","dependencies":{"punycode":"^2.3.1","@noble/hashes":"^1.7.2","@alphatr/publicsuffix":"^1.2.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.22.4","oxfmt":">=0.51.0 <1.0.0","oxlint":"^1.66.0","tsdown":"^0.22.0","typescript":"^6.0.0","@types/node":"^25.9.3","@types/punycode":"^2.1.4","@telematrix/oxfmt-config":"^0.1.1","@telematrix/oxlint-config-base":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/maze_1.2.1_1781699356892_0.5970331566073379","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@alphatr/maze","version":"1.2.2","author":{"name":"AlphaTr","email":"alphatr@alphatr.com"},"license":"MIT","_id":"@alphatr/maze@1.2.2","maintainers":[{"name":"alphatr","email":"alphatr@alphatr.com"}],"dist":{"shasum":"8c2c88b0b552324d519fe6160f63e23d518c3a8f","tarball":"https://registry.npmjs.org/@alphatr/maze/-/maze-1.2.2.tgz","fileCount":6,"integrity":"sha512-SsDHF/rYB3KZam9j4oJnGYFSexjw2groFgtcuHPYeWCh+FQZXXc8KjJAuWpb/ZuN76IQlxVg3fEBxI6ysCUtYQ==","signatures":[{"sig":"MEUCIQDNpyY9AF6Lp3npIugWJbPPvC48jyC3S1nhnCgr6qdh5gIgVBl/Dr/ozB7fp6JhXOtQEi+vGk7UBFEat8rTZlhWqqg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13880},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e83977c4340534ad9ab108316ac6166af67f0bd4","scripts":{"test":"tsx tests/index.ts","build":"tsdown","oxfmt":"oxfmt src","oxlint":"oxlint --config oxlint.config.ts src","prepublishOnly":"npm run build"},"_npmUser":{"name":"alphatr","email":"alphatr@alphatr.com"},"_npmVersion":"11.12.1","description":"random password","directories":{},"_nodeVersion":"24.15.0","dependencies":{"punycode":"^2.3.1","@noble/hashes":"^1.7.2","@alphatr/publicsuffix":"^1.2.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.22.4","oxfmt":">=0.51.0 <1.0.0","oxlint":"^1.66.0","tsdown":"^0.22.0","typescript":"^6.0.0","@types/node":"^25.9.3","@types/punycode":"^2.1.4","@telematrix/oxfmt-config":"^0.1.1","@telematrix/oxlint-config-base":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/maze_1.2.2_1781764033849_0.854549978553325","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"@alphatr/maze","version":"1.2.3","description":"random password","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"license":"MIT","author":{"name":"AlphaTr","email":"alphatr@alphatr.com"},"scripts":{"prepublishOnly":"npm run build","build":"tsdown","test":"tsx tests/index.ts","oxlint":"oxlint --config oxlint.config.ts src","oxfmt":"oxfmt src"},"dependencies":{"@alphatr/publicsuffix":"^2.0.0","@noble/hashes":"^1.7.2","punycode":"^2.3.1"},"devDependencies":{"@telematrix/oxfmt-config":"^0.1.1","@telematrix/oxlint-config-base":"^0.1.2","@types/node":"^25.9.3","@types/punycode":"^2.1.4","oxfmt":">=0.51.0 <1.0.0","oxlint":"^1.66.0","tsdown":"^0.22.0","tsx":"^4.22.4","typescript":"^6.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"engines":{"node":">=18.0.0"},"gitHead":"22933a4639df5ced68cd1af18e819af598e309e8","_id":"@alphatr/maze@1.2.3","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-ezuVuguTDzmvhHeLDrGpJLzajAr8o846TeSYWtyVgqFSccDl5httqMmSUzSDdDklL6lkTLvWPmA2yqfhn6ZHoQ==","shasum":"4e5950c035c2afd779e448f4bcd9f0ae6ca696bf","tarball":"https://registry.npmjs.org/@alphatr/maze/-/maze-1.2.3.tgz","fileCount":7,"unpackedSize":14632,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDaQbJ03fmBJ8t7rD8g3Ahf8h0fJYie8SdG1wfx8UURGQIhAPy1h8UYOZ/jOqeCGP3jMDwb0FoVTuW9jUDSpmA1GWof"}]},"_npmUser":{"name":"alphatr","email":"alphatr@alphatr.com"},"directories":{},"maintainers":[{"name":"alphatr","email":"alphatr@alphatr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/maze_1.2.3_1782191799260_0.985271385644892"},"_hasShrinkwrap":false}},"time":{"created":"2018-05-06T15:09:32.362Z","modified":"2026-06-23T05:16:39.489Z","1.0.0":"2018-05-06T15:09:32.740Z","1.1.0":"2018-05-12T05:38:05.959Z","1.1.1":"2018-05-12T06:20:59.410Z","1.2.0":"2026-06-17T12:18:36.578Z","1.2.1":"2026-06-17T12:29:17.039Z","1.2.2":"2026-06-18T06:27:14.085Z","1.2.3":"2026-06-23T05:16:39.392Z"},"author":{"name":"AlphaTr","email":"alphatr@alphatr.com"},"license":"MIT","description":"random password","maintainers":[{"name":"alphatr","email":"alphatr@alphatr.com"}],"readme":"# @alphatr/maze\n\n确定性的站点密码生成器。给定主密码、网址和盐值，生成该站点专属的派生密码，保持输入密码的字符类型结构（大写→大写、小写→小写、数字→数字、特殊字符→特殊字符）。\n\n## 安装\n\n```bash\nnpm install @alphatr/maze\n```\n\n## 使用\n\n```ts\nimport maze from '@alphatr/maze';\n\nconst salt = 'your-salt';\nconst password = maze('masterPassword123!', 'https://github.com', salt);\n```\n\n### 附加导出\n\n```ts\nimport { md5, suffix, punycode } from '@alphatr/maze';\n\nmd5('hello');                          // md5 hex string\nsuffix('https://www.tmall.com/login'); // 'www.tmall.com'\n```\n\n## API\n\n### `maze(password, link, salt): string`\n\n| 参数 | 类型 | 说明 |\n|------|------|------|\n| `password` | `string` | 主密码，字符类型结构会被保留 |\n| `link` | `string` | 目标网址或域名 |\n| `salt` | `string` | 盐值，用于个性化生成结果 |\n\n相同的三个参数始终产生相同的输出。`link` 会被规范化为注册域名（registrable domain），因此 `https://www.github.com/login` 与 `https://github.com` 效果相同。\n\n## License\n\nMIT\n","readmeFilename":"readme.md"}