{"_id":"@asteres/signature","_rev":"18-70b44dac3d58526af53e57b94870dbd4","name":"@asteres/signature","dist-tags":{"latest":"0.2.2"},"versions":{"0.0.1":{"name":"@asteres/signature","version":"0.0.1","keywords":["web","signature","node"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.0.1","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"1580d0cdb80895fb370c27254a3bc1edacd28591","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.0.1.tgz","fileCount":4,"integrity":"sha512-dPEjKpNWm7r1LVQkM9ozbWF2GQsXLkyubyX5aIHqz1uEmR6g1K4lFH8rfCVJFyIoQayHDmbyDScUjFFuMF700A==","signatures":[{"sig":"MEUCIGXDi3hhX/OSI7otGqrcCX2emxGQnl4XXw1X1YN1Z3S/AiEAhM1D7KCgJDySyqXBztFaMMYlIWVzfd3fTpi6dtrJh7U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9557},"main":"index.js","type":"module","_from":"file:asteres-signature-0.0.1.tgz","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"scripts":{"check":"pnpm biome check --write index.js"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"_resolved":"C:\\Users\\14562\\AppData\\Local\\Temp\\f4866b917a535c9250fdbfac6f3d96da\\asteres-signature-0.0.1.tgz","_integrity":"sha512-dPEjKpNWm7r1LVQkM9ozbWF2GQsXLkyubyX5aIHqz1uEmR6g1K4lFH8rfCVJFyIoQayHDmbyDScUjFFuMF700A==","repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"10.9.0","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"23.0.0","dependencies":{"ph-utils":"^0.15.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.22.0","globals":"^16.0.0","@eslint/js":"^9.22.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.0.1_1742147338909_0.060496776674498376","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@asteres/signature","version":"0.0.2","keywords":["web","signature","node"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.0.2","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"375f5cf38b1312b24dc3ccb9103f6a7d99dda533","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.0.2.tgz","fileCount":4,"integrity":"sha512-b/pXWIwDmjLe/GEmtFUkdvnppBJPI/ecZn+3z9Oo5+gbJN2a1ZJOorOabPMRf/f7mPTHSNrXpkOtFVuoK/V/Kg==","signatures":[{"sig":"MEQCIH6rhbcytNDD6ZIp4CXGNgzaESnCbgJSBRQj0HW3MP4oAiBxJHsUen0PEpaoSX0ym7mkZbaNsoqoxNWGgZWzAJfeGg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10204},"main":"index.js","type":"module","_from":"file:asteres-signature-0.0.2.tgz","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"scripts":{"check":"pnpm biome check --write index.js"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"_resolved":"C:\\Users\\14562\\AppData\\Local\\Temp\\e0d135a6c12f11b3883b88c8a08033ec\\asteres-signature-0.0.2.tgz","_integrity":"sha512-b/pXWIwDmjLe/GEmtFUkdvnppBJPI/ecZn+3z9Oo5+gbJN2a1ZJOorOabPMRf/f7mPTHSNrXpkOtFVuoK/V/Kg==","repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"10.9.0","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"23.0.0","_hasShrinkwrap":false,"peerDependencies":{"ph-utils":"^0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.0.2_1742229850523_0.16047171285889839","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@asteres/signature","version":"0.0.3","keywords":["web","signature","node"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.0.3","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"a3e3694047619ff288c11002f55f971c9b859947","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.0.3.tgz","fileCount":5,"integrity":"sha512-IWatHUo08FnV4sDVfyqx6aH9cT6yoJNZgmzXWhh80/ALsaPaPtcEHTT7mI7Qn20xRtCIB3AIIhIjQ1cZ43AepA==","signatures":[{"sig":"MEUCIQDB0iI/JuehZ5EdIuvBwWk4uLs9134cQOiSQbw2iLL1cAIgROXeAfxtPXhVbKzvqvhZqStNlz5MtXy1gs9n/8Ok/pM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14314},"main":"index.js","type":"module","_from":"file:asteres-signature-0.0.3.tgz","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"scripts":{"check":"pnpm biome check --write index.js"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"_resolved":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\b1ceaac52c55699a2c0329aecbc897cc\\asteres-signature-0.0.3.tgz","_integrity":"sha512-IWatHUo08FnV4sDVfyqx6aH9cT6yoJNZgmzXWhh80/ALsaPaPtcEHTT7mI7Qn20xRtCIB3AIIhIjQ1cZ43AepA==","repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"10.8.2","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"22.5.1","_hasShrinkwrap":false,"peerDependencies":{"ph-utils":"^0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.0.3_1742357504117_0.39117580347723413","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@asteres/signature","version":"0.0.4","keywords":["web","signature","node"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.0.4","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"787b6de770bf147d01d6c637eaf127a334d19d43","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.0.4.tgz","fileCount":5,"integrity":"sha512-CYA+sucmNDZUMT7wiLFY3Dim1zVNY/lp/1k+RZg6ik5CsvU39t/nk6FmtTdYahIcMJ2elIpUuZHFGSoBbn9ZMA==","signatures":[{"sig":"MEUCIAEW93pIJHKPuP1HYNdVXd8v5ETRsvF463i2C/noBQVWAiEA2zE1H2RKyazo8GD6Pgm9oGxGFYXtNGVuSUdu1IFDU1I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14333},"main":"index.js","type":"module","_from":"file:asteres-signature-0.0.4.tgz","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"scripts":{"check":"pnpm biome check --write index.js"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"_resolved":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\831cdb2076de07250ed0ebc285c0ed7c\\asteres-signature-0.0.4.tgz","_integrity":"sha512-CYA+sucmNDZUMT7wiLFY3Dim1zVNY/lp/1k+RZg6ik5CsvU39t/nk6FmtTdYahIcMJ2elIpUuZHFGSoBbn9ZMA==","repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"10.8.2","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"22.5.1","_hasShrinkwrap":false,"peerDependencies":{"ph-utils":"^0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.0.4_1742360041784_0.8401981653776018","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@asteres/signature","version":"0.0.5","keywords":["web","signature","node"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.0.5","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"aa9ab4af174b29f844fd1b4339caae52f3a393cf","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.0.5.tgz","fileCount":5,"integrity":"sha512-36LN3IZH4qffICRKlicDfYOJgKQ0pEPD3v9ipDz6oksMAwaPaEv5SJ86NjX2P+9wZXPqKwZJJvzT7sa8eW5QIQ==","signatures":[{"sig":"MEQCICSwqG65NZPFTMXaUk2BJ0Kredwpd7/eVpBZAOA6sG2NAiB8ScHqk694KFf7CZS+efjqu6zU8gpas2IYKUAp4Q2YHg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15427},"main":"index.js","type":"module","_from":"file:asteres-signature-0.0.5.tgz","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"scripts":{"check":"pnpm biome check --write index.js"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"_resolved":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\a2170a102ad8a8e2e8aba578f9139214\\asteres-signature-0.0.5.tgz","_integrity":"sha512-36LN3IZH4qffICRKlicDfYOJgKQ0pEPD3v9ipDz6oksMAwaPaEv5SJ86NjX2P+9wZXPqKwZJJvzT7sa8eW5QIQ==","repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"10.8.2","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"22.5.1","_hasShrinkwrap":false,"peerDependencies":{"ph-utils":"^0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.0.5_1742368602491_0.03248287628629143","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@asteres/signature","version":"0.0.6","keywords":["web","signature","node"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.0.6","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"f9178f841f6c26a0c6db2704df8d0b1b092a975c","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.0.6.tgz","fileCount":5,"integrity":"sha512-ytz8Cmf65lxxCwQHcFUxjbQ2tUkfO9qclfTfmxR0UEkCrwQB+H3byP7NwnMChs3fVTSR/2W7IUhRifme+UT1Wg==","signatures":[{"sig":"MEUCIHQSD9UM36DT0ji+pSv7BrPucA+8pKp1PwWURsFBnu1eAiEA8kK8L5zql0OJG9zu9O06IuwYQs9YLh3+1ATK6ArKakM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15428},"main":"index.js","type":"module","_from":"file:asteres-signature-0.0.6.tgz","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"scripts":{"check":"pnpm biome check --write index.js"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"_resolved":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\879bc139516fea7745d8dc986d8c8297\\asteres-signature-0.0.6.tgz","_integrity":"sha512-ytz8Cmf65lxxCwQHcFUxjbQ2tUkfO9qclfTfmxR0UEkCrwQB+H3byP7NwnMChs3fVTSR/2W7IUhRifme+UT1Wg==","repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"10.8.2","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"22.5.1","_hasShrinkwrap":false,"peerDependencies":{"ph-utils":"^0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.0.6_1742375280668_0.02931134299176752","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@asteres/signature","version":"0.0.7","keywords":["web","signature","node"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.0.7","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"0f42e9129da0c424c5a3a8159c6463c78acb376b","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.0.7.tgz","fileCount":5,"integrity":"sha512-q5rFjPK8MXAovx1y06RkZve0DHEPMq2z3RMdl7H9a1jaSAwyMgXYM2PMD4Df5hl1++QRISOKUj6cKUbo/avqyw==","signatures":[{"sig":"MEQCIE7G28KLKji59dMtgVwJvlPFb3qpyh6L30VoIavK/WJmAiAoWX7Oijr9w1Mzc66MTaZiNAUeSa2zHBzJu8E/qQvJcA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15214},"main":"index.js","type":"module","_from":"file:asteres-signature-0.0.7.tgz","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"scripts":{"check":"pnpm biome check --write index.js"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"_resolved":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\5678f4f880bec7864f95771416956f93\\asteres-signature-0.0.7.tgz","_integrity":"sha512-q5rFjPK8MXAovx1y06RkZve0DHEPMq2z3RMdl7H9a1jaSAwyMgXYM2PMD4Df5hl1++QRISOKUj6cKUbo/avqyw==","repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"10.8.2","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"22.5.1","_hasShrinkwrap":false,"peerDependencies":{"ph-utils":"^0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.0.7_1743392042061_0.42319984490829965","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@asteres/signature","version":"0.0.8","keywords":["web","signature","node"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.0.8","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"82af549f956797fa0a24ff066ff3d2c997c5ef34","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.0.8.tgz","fileCount":5,"integrity":"sha512-9ljqs6TNZR+xttohb70OKqrrI/YGB9Wqb/77ydmBKcaFaE6pNwWJav4/4XMuVU8KdYeXF4GrHVIN7YLXGDsPzw==","signatures":[{"sig":"MEUCICKJTNtJcBAh/oq9z02UfN6CvOBRzZvaHIsZIGJ0JF47AiEArpmv3AzP8ffTOHm1DHScfJENc8FM6aBHa4CzVKz5dDc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15184},"main":"index.js","type":"module","_from":"file:asteres-signature-0.0.8.tgz","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"scripts":{"check":"pnpm biome check --write index.js"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"_resolved":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\73ac654ac378d88b85c3d6064999b397\\asteres-signature-0.0.8.tgz","_integrity":"sha512-9ljqs6TNZR+xttohb70OKqrrI/YGB9Wqb/77ydmBKcaFaE6pNwWJav4/4XMuVU8KdYeXF4GrHVIN7YLXGDsPzw==","repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"10.9.3","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"peerDependencies":{"ph-utils":"^0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.0.8_1756797948648_0.8255553209097648","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"name":"@asteres/signature","version":"0.0.9","keywords":["web","signature","node"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.0.9","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"180ce3bf6ad3e738650b2d1472c284275bcbc46d","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.0.9.tgz","fileCount":5,"integrity":"sha512-F8KK4wPQ0ZP7lCycV0yMe4UnVlApMC7USgx4EBGJE6IJqjfA4eON9NZZY1Ol0Eq9Td2gdxbvlaeBqrlXVed97w==","signatures":[{"sig":"MEYCIQDiW5AM3grRVHS1ofL9RkmuglErMLB/SV1T2jKDmZ8CQQIhANaUKxAmoQsbJtrk74LsgMOrQCLHrfIsPYYKVRV45qos","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15301},"main":"index.js","type":"module","_from":"file:asteres-signature-0.0.9.tgz","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"scripts":{"check":"pnpm biome check --write index.js"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"_resolved":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\c766cd7abd1953445fc9a9366b15a349\\asteres-signature-0.0.9.tgz","_integrity":"sha512-F8KK4wPQ0ZP7lCycV0yMe4UnVlApMC7USgx4EBGJE6IJqjfA4eON9NZZY1Ol0Eq9Td2gdxbvlaeBqrlXVed97w==","repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"10.9.3","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"peerDependencies":{"ph-utils":"^0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.0.9_1756884364325_0.29719352143185773","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@asteres/signature","version":"0.1.0","keywords":["web","signature","node"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.1.0","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"4d3559b90017a4d01e7da1a2f047ba38663664e9","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.1.0.tgz","fileCount":5,"integrity":"sha512-EWSd1OZFg0zbMkFSakK85XSqUI7cmNEsI+3Q9DdgsMn+wVEmHyl4GSPtha4bUbcrZYzsmB+gk1mLAIWO57GIPg==","signatures":[{"sig":"MEYCIQC/HuV1bE8OncVjL0epZQHhmGjAmwIxBP+ASxIHpDz68gIhAJNzSucwJ0yF8sQGFZIfnCOoKNMyO0zL/8n75lfZOfIw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15606},"main":"index.js","type":"module","_from":"file:asteres-signature-0.1.0.tgz","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"scripts":{"check":"pnpm biome check --write index.js"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"_resolved":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\9b5160c7638db590869893ea9a8e82d9\\asteres-signature-0.1.0.tgz","_integrity":"sha512-EWSd1OZFg0zbMkFSakK85XSqUI7cmNEsI+3Q9DdgsMn+wVEmHyl4GSPtha4bUbcrZYzsmB+gk1mLAIWO57GIPg==","repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"10.9.3","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"peerDependencies":{"ph-utils":"^0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.1.0_1757386118414_0.33605326216645026","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@asteres/signature","version":"0.1.1","keywords":["web","signature","node"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.1.1","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"7858535efbab169a09f8ba6c630f074bcac034b1","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.1.1.tgz","fileCount":5,"integrity":"sha512-9ZPmZEsot01waSaSU5vhq4qFdTzEP35xQKtKDFZyp4/5UwrdM58sWFd9LXlX1psrlryk//7UlUFnRNYyiaTXcQ==","signatures":[{"sig":"MEYCIQDktA42W04hgn6gLhLqLU5HvZ9riR7qDeVyUaAVN+sc6AIhAOW4YaklbEDULLQi0dyJT6CViEuBkfbmF/FnAUv4LBW5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15607},"main":"index.js","type":"module","_from":"file:asteres-signature-0.1.1.tgz","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"scripts":{"check":"pnpm biome check --write index.js"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"_resolved":"C:\\Users\\ASUS\\AppData\\Local\\Temp\\ff6f63c661350ac52bd04a8ba53bf5b0\\asteres-signature-0.1.1.tgz","_integrity":"sha512-9ZPmZEsot01waSaSU5vhq4qFdTzEP35xQKtKDFZyp4/5UwrdM58sWFd9LXlX1psrlryk//7UlUFnRNYyiaTXcQ==","repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"10.9.3","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"peerDependencies":{"ph-utils":">=0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.1.1_1757915820655_0.37937435294425415","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@asteres/signature","version":"0.1.2","keywords":["web","signature","node"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.1.2","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"b2247af0f4f3f2237d495f3cd70b849ba0d04d4f","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.1.2.tgz","fileCount":5,"integrity":"sha512-l8WUI9CkX7yLHq045ALFUKx+p7Jh1FIKLZrRYvYQiHMNkd8HQKWG7BtqiEEshD6tSeTeq3n+pyJFTP2rLzk6vg==","signatures":[{"sig":"MEYCIQC3uGyrTsTRH678zIyfS1cqfSpICJMGyyIvhFJVak+lCgIhAKWOJggG8JaOpXHOSDub0pIPwdhK/MAt6KnDuOBcOxv2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15639},"main":"index.js","type":"module","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"gitHead":"bd90726c66af3f632785ffbe0b337dad49207d27","scripts":{"check":"pnpm biome check --write index.js"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"10.9.3","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"peerDependencies":{"ph-utils":">=0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.1.2_1761206922586_0.5427050323158848","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@asteres/signature","version":"0.1.3","keywords":["web","signature","node"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.1.3","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"4dfef6e1c6f1aded624e0f6958fccf3eb83d1eee","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.1.3.tgz","fileCount":5,"integrity":"sha512-rKtvvEAo12yzIe/BlpYFHtPnUu4ZHv/K36OpzkXKAMwYKZwoYvDxmKAF7AGWJSdlvmzub6+M0f4M3rlv7mR1ug==","signatures":[{"sig":"MEQCIEkDuZO4qvs71qhk6C6FGKBBBCFH4uOiv7rOXZYg451kAiBnD+74/QqlZJVlsPKHad3H9LNn6F66oDJwrydGB9y2fQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15830},"main":"index.js","type":"module","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"gitHead":"e681d08aeaae9b638b59045e08e55baa75c3c76b","scripts":{"check":"pnpm biome check --write index.js"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"10.9.3","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"peerDependencies":{"ph-utils":">=0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.1.3_1761207687081_0.678158712983796","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@asteres/signature","version":"0.1.4","keywords":["web","signature","node"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.1.4","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"f1c971fff039aa78cbf90a57be073d6789d9ae6d","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.1.4.tgz","fileCount":5,"integrity":"sha512-eDHOAvdJJDunLswxpBskq4lb2kmPv1fyvG298/HdLa9RAMnymdxmj7kcZlKNafg3T7IIuGkE/pXR2Wvb/4T6ZA==","signatures":[{"sig":"MEQCIDvbMiMmfpwLdHSwtEeM1uOEl24qpVexwUnsffGjuVgpAiBMO09eA9XBbGKsEFhWnWXG8nO51L5rYp6Gm4KKm8l5iQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15922},"main":"index.js","type":"module","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"gitHead":"dc38f8f23a240de6c7ec254336f6392579ab36ca","scripts":{"check":"pnpm biome check --write index.js"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"10.9.3","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"peerDependencies":{"ph-utils":">=0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.1.4_1761550520110_0.026976517152938362","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@asteres/signature","version":"0.1.5","keywords":["web","signature","node"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.1.5","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"a8384687e5d575da03458f9680bd1101ee44a8eb","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.1.5.tgz","fileCount":5,"integrity":"sha512-zVVJtXSJS7wkNeO2kaoF1GJ0Om8/Yn8r6j7LqmDZdmUr36I3zQMPdiQAhlT9yDzSVMldCLXFo7WtrP4ljTi4dQ==","signatures":[{"sig":"MEYCIQCFJdbUjBtOMDLhrqBQnk5h84xBhQ9q6NH5GLwtQKKvrwIhAPZ6oKBW2IDtkTvBXEB5es+1NWI9WORKjR+ePC8rRRzH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15912},"main":"index.js","type":"module","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"gitHead":"bcb7762a5de6e40e3dcc494981d83b2580e9ec60","scripts":{"check":"pnpm biome check --write index.js"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"11.6.1","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"24.10.0","_hasShrinkwrap":false,"peerDependencies":{"ph-utils":">=0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.1.5_1764037942673_0.11283983476692927","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@asteres/signature","version":"0.2.0","keywords":["node","signature","web"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.2.0","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"b9d15085b5b901a33719dffde1434c67749dd804","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.2.0.tgz","fileCount":5,"integrity":"sha512-I+Rqq03iQhVhEX0nprAgWlas50/jErS7Be1ZuOxba0jqcVdTtjeNRtz5PiSYRQNFotHOdicUY2G9uZ0BaLk9hQ==","signatures":[{"sig":"MEUCID4dbf2qCtyQp4Fr+rxZSEJ8kb0i0IX61EM/uhWW5HjwAiEAwwN/pk7OmrHsK2tYTN3kSm6wTA8xuqJG5MflsWgJZJA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16661},"main":"index.js","type":"module","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"gitHead":"5b03bec35e92c08c98df02144e112e953f361b4e","scripts":{"build":"rolldown lib.js --file bundle.js --minify"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"11.6.1","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"24.10.0","dependencies":{"crypto-es":"^3.1.3"},"_hasShrinkwrap":false,"devDependencies":{"oxfmt":"^0.42.0","oxlint":"^1.57.0"},"peerDependencies":{"ph-utils":">=0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.2.0_1774591191052_0.991193629321024","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@asteres/signature","version":"0.2.1","keywords":["node","signature","web"],"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","_id":"@asteres/signature@0.2.1","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"dist":{"shasum":"3254dd4938b96ed97b16268e7febdf49d062ab99","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.2.1.tgz","fileCount":5,"integrity":"sha512-iGgn481hQbZxCAH2uKAneFcCsoHXHEho/5so8TGkvazkcyibjzS8fXFXkzH8X+DrQOpv4qjuZkSY4o2aauBgFg==","signatures":[{"sig":"MEQCIBO9Gf9d+IteQTVyI590DZv8c+tlM0TM7P47UTdE9a/2AiBNchBCeQMj2tviXrtskZvu1kXlzdBH2caWPutsiekySQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16610},"main":"index.js","type":"module","types":"index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js"}},"gitHead":"245c11aa11f8e3f02268c867d2bbbc5953f1f07f","scripts":{"build":"rolldown lib.js --file bundle.js --minify"},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"repository":{"url":"git+https://github.com/DvShu/signature.git","type":"git"},"_npmVersion":"11.6.1","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","directories":{},"_nodeVersion":"24.10.0","_hasShrinkwrap":false,"devDependencies":{"oxfmt":"^0.42.0","oxlint":"^1.57.0"},"peerDependencies":{"ph-utils":">=0.15.0"},"_npmOperationalInternal":{"tmp":"tmp/signature_0.2.1_1774591675917_0.8711514626123475","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@asteres/signature","version":"0.2.2","description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","keywords":["node","signature","web"],"homepage":"https://github.com/DvShu/signature#readme","bugs":{"url":"https://github.com/DvShu/signature/issues"},"license":"MIT","author":{"name":"Tenny","email":"joel.shu@qq.com"},"repository":{"type":"git","url":"git+https://github.com/DvShu/signature.git"},"type":"module","main":"index.js","types":"index.d.ts","exports":{".":{"import":"./index.js","types":"./index.d.ts"}},"scripts":{"build":"rolldown lib.js --file bundle.js --minify"},"devDependencies":{"oxfmt":"^0.65.0","oxlint":"^1.80.0"},"peerDependencies":{"ph-utils":">=1.1.0"},"gitHead":"1d3445e1603f59c4a8c9d3d8a1b9f1d4814e0224","_id":"@asteres/signature@0.2.2","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-hgM5x1so7XK/tpw3B60SxsWPv10ePRXxTjh98U8sgfT2FIxGcQD8440KFOJH1nPy0UlSlvfSAaSjireBf3XEuQ==","shasum":"9aae4ab53e06a391a5664bb67d9f663314a15fb6","tarball":"https://registry.npmjs.org/@asteres/signature/-/signature-0.2.2.tgz","fileCount":5,"unpackedSize":16795,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCDzj7E3rjJw/K02DlJURutLz4Lbux2pzAvAW6Xy0+n2QIhAOstXjr+mdCiBo85HsgPyx1F28pTHaSGiDL9xU1HYJoZ"}]},"_npmUser":{"name":"lucidus","email":"1456207945@qq.com"},"directories":{},"maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/signature_0.2.2_1787841834093_0.8640668985590223"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-16T17:48:58.794Z","modified":"2026-08-27T14:43:54.444Z","0.0.1":"2025-03-16T17:48:59.079Z","0.0.2":"2025-03-17T16:44:10.699Z","0.0.3":"2025-03-19T04:11:44.284Z","0.0.4":"2025-03-19T04:54:01.945Z","0.0.5":"2025-03-19T07:16:42.672Z","0.0.6":"2025-03-19T09:08:00.909Z","0.0.7":"2025-03-31T03:34:02.218Z","0.0.8":"2025-09-02T07:25:48.843Z","0.0.9":"2025-09-03T07:26:04.506Z","0.1.0":"2025-09-09T02:48:38.661Z","0.1.1":"2025-09-15T05:57:00.846Z","0.1.2":"2025-10-23T08:08:42.842Z","0.1.3":"2025-10-23T08:21:27.296Z","0.1.4":"2025-10-27T07:35:20.276Z","0.1.5":"2025-11-25T02:32:22.860Z","0.2.0":"2026-03-27T05:59:51.197Z","0.2.1":"2026-03-27T06:07:56.087Z","0.2.2":"2026-08-27T14:43:54.221Z"},"bugs":{"url":"https://github.com/DvShu/signature/issues"},"author":{"name":"Tenny","email":"joel.shu@qq.com"},"license":"MIT","homepage":"https://github.com/DvShu/signature#readme","keywords":["node","signature","web"],"repository":{"type":"git","url":"git+https://github.com/DvShu/signature.git"},"description":"前后端通用接口签名：生成签名、组装签名字符、验证签名","maintainers":[{"name":"lucidus","email":"1456207945@qq.com"}],"readme":"# Signature\r\n\r\n使用 `JS` 封装的一套前后端通用的签名工具，包含：生成签名、验签\r\n\r\n## 使用\r\n\r\n### 1. 安装\r\n\r\n```bash\r\nnpm install @asteres/signature\r\n```\r\n\r\n### 2. 引入\r\n\r\n```js\r\nimport {\r\n  generateSignature,\r\n  verifySignature,\r\n  generateSignatureHeader,\r\n  verifySignatureHeader,\r\n} from \"@asteres/signature\";\r\n```\r\n\r\n### 3. 使用\r\n\r\n```js\r\nconst res = await generateSignature(...);\r\nconst res = await verifySignature(...);\r\n```\r\n\r\n## API\r\n\r\n### 生成签名\r\n\r\n1. `generateSignature(): Promise<Result>` 生成签名\r\n\r\n2. `generateSignatureHeader(): Promise<Result>` 生成签名并组装为请求头参数\r\n\r\n### 验证签名\r\n\r\n1. `verifySignature(): Promise<Result>` 验证签名\r\n2. `verifySignatureHeader(): Promise<Result>` 验证签名头参数\r\n\r\n## 示例\r\n\r\n1. 生成签名\r\n\r\n```javascript\r\ngenerateSignatureHeader({\r\n  appid: '', // APPID\r\n  secretKey: '', SECRET_KEY\r\n  url: '', // 请求地址\r\n  body: '', // 请求体, 可选, 只有在 POST 请求且有body时才传\r\n  query: {}, // URL 参数, 可选\r\n  method: 'GET', // 请求方法\r\n  withHashName: true, // 生成的请求头值是否带上签名算法: HMAC-SHA256\r\n  pairValue: false // 生成的请求头值是 a=1&b=2(true) 形式还是 1:2(false) 形式\r\n})\r\n```\r\n\r\n2. 验证签名\r\n\r\n```javascript\r\nverifySignatureHeader({\r\n  headerValue: signature, // 获取的签名头的值\r\n  getSecretkeyByAppid: async (appid) => {\r\n    return '';\r\n  }, // 根据appid 获取 secretKey\r\n  verifyTimestamp: true, // 是否验证时间戳, 防止重放攻击\r\n  timestampValidTime: 300, // 验证时间戳时，时间戳有效性：默认: 300s(5min)\r\n  withHashName: true,\r\n  pairValue: false,\r\n  url: '',\r\n  method: '',\r\n  body: '',\r\n  query: {}\r\n});\r\n```\r\n\r\n> 如果运行在非安全环境下，无法使用 `window.crypto.subtle` 则需要安装 `crypto-es`; 然后引入到 `window.crypto.HmacSHA256`\r\n\r\n```bash\r\npnpm add crypto-es\r\n```\r\n\r\n下面使用 `vite` 做构建工具时\r\n\r\n```javascript\r\nimport { HmacSHA256 } from \"crypto-es\";\r\n\r\n// 假设 test 环境下不是 https \r\nif (import.meta.env.MODE === \"test\") {\r\n  // @ts-ignore\r\n  window.crypto.HmacSHA256 = HmacSHA256;\r\n}\r\n\r\n// 然后打包时执行: vite build --mode test\r\n```\r\n","readmeFilename":"README.md"}