{"_id":"@ash0080/one-char-hash","_rev":"5-baeee4717f9099eaab0e2d2a670f99bd","name":"@ash0080/one-char-hash","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@ash0080/one-char-hash","version":"1.0.0","repository":{"type":"git","url":"git+https://github.com/ash0080/one-char-hash.git"},"description":"Input an arbitrary length string, return a utf-8 char, collision possible ≈ 1/ 1 million, can be used as a simple extreme short hash, can be used for user fingerprint verification or other scenarios","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["extrem-short-hash","unicode"],"author":{"name":"ash0080"},"license":"ISC","gitHead":"ee1323fde0b787e9c68a3eaaf1098211cd2e5886","bugs":{"url":"https://github.com/ash0080/one-char-hash/issues"},"homepage":"https://github.com/ash0080/one-char-hash#readme","_id":"@ash0080/one-char-hash@1.0.0","_nodeVersion":"14.18.2","_npmVersion":"8.3.0","dist":{"integrity":"sha512-0fd+/VANVAel7rb+82bgwIYv7zvq0+dMV8BU4X7f8vV2Df9U7Z30fnzfoB70JGjfBQNT1GOyNbRR6QqBH3YcoQ==","shasum":"30513c5911e5bc812280f5aae7e58c280c44639e","tarball":"https://registry.npmjs.org/@ash0080/one-char-hash/-/one-char-hash-1.0.0.tgz","fileCount":3,"unpackedSize":2165,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3mAOCRA9TVsSAnZWagAABBgP/iDcgxguWv+8/q9PidS3\nPkhypbGULfaGTy2V3ZK0f7bntoqgQnGRTGUf43bBPzWgQdeX6okF3wbFxhx5\n0j6M7/yy9IzbUITHs/Rs8o9WfSdQYiIEEnWhIw/Sprxd+G2tMtz/RC65CfSl\naIiRp+f+6GS3rWi8DP+EyHdxThuBLK+s8r3hBrazPF27GMSM5DxBLTIqCpZ7\nTyMyS9QzpsK96AOhiZj8oDnmrbHFcaoV23FvXX2ph6qKFdMQvMVBIj3+GHbr\nJkeUeS4cTfRuHnrgQ9FUZpLybP+F1qWiJb8vFRXwyXOXEQQlsplMOAbUnKdj\n7EwBXcBzFTez2PhtXZ0gVLGqYbHDqT1Y9f6BYlpvkngWIO3oKX7tyZ08koqT\n7D6YoclQj/PRqUL+FTKP6k0hjtvqe3qPQU3IFtM43kF0xb2rr85u5PTdxXSe\nC/wKFyFBt/lPq3J/bM+aB9GlfkLJUjnHNGaIA35G7kiwhSF/uNH96HkjvCZw\njc+UwVFBRTo659zHyxvyM7lKglPLe/3ioh6gGG4uWNZb3r0on+eyQD9KEa6c\ntBPdXu5lJL/ASSkIjxL3HfJCOuN2hrcCosOCOE+RZfHQ+u6St+Wt6MxzM7zI\nGbM2Kjq71GF8LeXEKL/j9yR66cqXjFrEx1IHKHiwMKJ34j+XAf18nZ6ARGMM\n4wMQ\r\n=YLiG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJ9Zo/KlR3341xxv+LF59P8ILGiYAQSEWNbEwVkckVJwIhANA3ODTldlHZKpQJudTv2Ggv8JGSiUatlIWwFCDBlm39"}]},"_npmUser":{"name":"ash0080","email":"ash0080@gmail.com"},"directories":{},"maintainers":[{"name":"ash0080","email":"ash0080@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/one-char-hash_1.0.0_1641963534752_0.19346925279678762"},"_hasShrinkwrap":false},"1.0.1":{"name":"@ash0080/one-char-hash","version":"1.0.1","repository":{"type":"git","url":"git+https://github.com/ash0080/one-char-hash.git"},"description":"Input an arbitrary length string, return a unicode char, collision possible ≈ 1/ 1 million, can be used as a simple extreme short hash, can be used for user fingerprint verification or other scenarios","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["extrem-short-hash","unicode"],"author":{"name":"ash0080"},"license":"ISC","gitHead":"ee1323fde0b787e9c68a3eaaf1098211cd2e5886","bugs":{"url":"https://github.com/ash0080/one-char-hash/issues"},"homepage":"https://github.com/ash0080/one-char-hash#readme","_id":"@ash0080/one-char-hash@1.0.1","_nodeVersion":"14.18.2","_npmVersion":"8.3.0","dist":{"integrity":"sha512-FtvV/rexb/uvab8W3TQaXeTb+23VxY67Uxv+dT/tEDs46eqm9Z3lx521C6UuTQFu/rBCmoQ7fWhUdwIhjgtcSg==","shasum":"d49dfeb85d7fc7c40bd6d53e0a3895f8e0ec36e4","tarball":"https://registry.npmjs.org/@ash0080/one-char-hash/-/one-char-hash-1.0.1.tgz","fileCount":3,"unpackedSize":2167,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3mEhCRA9TVsSAnZWagAA94MP/iOH+OvQb77vBL2r7fIZ\nS8Xie0iAKtoewVySBEIm//HQRXmfh7jre5ALj01VbmnK5WqXrXII2J1ADDkM\nmGjxn77Gxr0DNXqbMYf0d5pDOAI1K/VFroAt+TNt3uT8yCI7lbeArgpr2Ffu\n8tc9nPwfJ3HtbXCl7x3ljQ8FtqJfBlE0QDbgtDJKEkz2On8JXnUeOT9f/lK1\nKVCWbERen7x2zgc+K05wBV/r+4uAuQe4SAqaELjRFG51zv2tdPZeLE2YnNNb\nX2HDvx6fGSOgFLCZxABdTsonCpCVRLCDFXf5muc5Fzw+jB8bh85nfmNuXQgu\nYzG3cuibukVXtnsCrLQ/uQBeIgIH6KGALTCIC4A4Ik4LLAhqxNlDGq7h6Fo/\n2E73QraOvqcr25z9jjX8L5ulBh2YxNV2rrq3ph6Pq8BqjbhvB05Mrn1EMpIP\nOCV2QpWc9w/gFlNej29YpLaZnwP0MdkT6hN28CmirPXzueKwMIjVUdzDzid6\nxr8UW9CskGz/6To238OfLDLHFlNNx7SmhKCKfevrRxeaikmnYQzcdqJpA93S\neb+HrCK8wRW4a/NH5ThOjbSZQPe32s9yV0U+rqO75LrNGjRAiJgUmhj+boH8\nbAhutzXE8YMXhhuGAuGy4InCnnZpsSRF7OQDCx2grIZ4EBbMEwyQdVTb7vA8\n619O\r\n=JPlm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNKP2qQyQugAN6nA1gna4IlI70HEquNtTgE/IktONPfQIhAIOmikNCzMaC65dyOaQiWeE8QQMmR8n9X4xHK9FoxTlI"}]},"_npmUser":{"name":"ash0080","email":"ash0080@gmail.com"},"directories":{},"maintainers":[{"name":"ash0080","email":"ash0080@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/one-char-hash_1.0.1_1641963809603_0.6496874173906497"},"_hasShrinkwrap":false},"1.0.2":{"name":"@ash0080/one-char-hash","version":"1.0.2","repository":{"type":"git","url":"git+https://github.com/ash0080/one-char-hash.git"},"description":"Input an arbitrary length string, return a unicode char, collision possible ≈ 1/ 1 million, can be used as a simple extreme short hash, can be used for user fingerprint verification or other scenarios","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["extrem-short-hash","unicode"],"author":{"name":"ash0080"},"license":"ISC","gitHead":"38f8d398aaad0cefd7fdd1a6aac5edac28d3fa33","bugs":{"url":"https://github.com/ash0080/one-char-hash/issues"},"homepage":"https://github.com/ash0080/one-char-hash#readme","_id":"@ash0080/one-char-hash@1.0.2","_nodeVersion":"14.18.2","_npmVersion":"8.3.0","dist":{"integrity":"sha512-KBNFiJBvku/o7O4xPQf6bihxryb7h81CWdqn0tx0/WnBJbrSiHO4zrPQbWmI0by2Bus+a3JpZlrvWQ4GkS6JPQ==","shasum":"2a8b028fff5a820570e7cd0265ba63b89de54348","tarball":"https://registry.npmjs.org/@ash0080/one-char-hash/-/one-char-hash-1.0.2.tgz","fileCount":3,"unpackedSize":2267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3nHpCRA9TVsSAnZWagAAvdAP/169rbUl8EufLsCvJQ7V\nyW9S1pFxMZo+aBJ5Pqr0itHOaw9sTlmbp280Xq7YBm6tQvme6+0GVipYOhGI\nJO4EZ0Sde1M8e12LS6RdKt1seXyUW+jxKjyHFy+/hwk8BCcO1GOp8qb5ZO6S\nqs1+fIc2muhgJ5dyo2vH/l5iW0PkGsWcxF0XS3h2+FUMEVHpwh0i7/BJpLoQ\nbg3Qequ0CQ151nwybzMT+It/+qm8Qbi6KznW9v3N1FYKGGbpirgOVR054QOt\n7Jp8Q53TBuBso1wwMyHOdetiCA+ltkNU6WRcjUQJ6NSa5NdDIkBuTV0fBXsm\n56iUEDF7KVex/MEvskzlsRzelBa0AWQ+v1LjTkFl+wSyX5sj/lXAzDLvMGQp\ntlgYII3B1+GJOQfyRVFM52A/fgr6F3MgL4SxdNFxRA73T18Kzfo7eZ8ytst6\n99uahppVUFeDb8l5KRyXSszdXMxfNhRHTPnfBm+8jTYz1B5Ldo5XJR67SoZR\nx7f4HPRshRmWVl07y6scjfuzPWeBib3ZNa1YPEx+cWDzIjJSksbgb0TxJ4L9\nraE+PaZvQZlfq4Mkz+AQjM5wi6WijRTn8zpBLLQRfVu9fvflZA8Loj73EhAU\nrMSjPo+ByqX6rJdnz90kU7Bl7l8Xp2bEQjbW8/xkIkUDAZqcP8NuWDV9/z4r\nsHI0\r\n=sumv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwHv0hunXMwgP0aGvcadCVhgKtXAecykQHqR4gJPbXTAIgajSWQegXt9Fkv1itujkEfkOo3m2vTONcbsC9RvllUqc="}]},"_npmUser":{"name":"ash0080","email":"ash0080@gmail.com"},"directories":{},"maintainers":[{"name":"ash0080","email":"ash0080@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/one-char-hash_1.0.2_1641968104897_0.6120068299304093"},"_hasShrinkwrap":false},"1.0.3":{"name":"@ash0080/one-char-hash","version":"1.0.3","repository":{"type":"git","url":"git+https://github.com/ash0080/one-char-hash.git"},"description":"Input an arbitrary length string, return a unicode char, collision possible ≈ 1/ 1 million, can be used as a simple extreme short hash, can be used for user fingerprint verification or other scenarios","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["extrem-short-hash","unicode"],"author":{"name":"ash0080"},"license":"ISC","devDependencies":{"tap":"^15.1.5"},"gitHead":"78e15480566941f4e60985a51a5513bb817bde49","bugs":{"url":"https://github.com/ash0080/one-char-hash/issues"},"homepage":"https://github.com/ash0080/one-char-hash#readme","_id":"@ash0080/one-char-hash@1.0.3","_nodeVersion":"14.18.2","_npmVersion":"8.3.0","dist":{"integrity":"sha512-gxbZ+chrrFKcVS8D/zsZSQYAYtPkcW4V26iU6Sn6j4gg1OvYKVxNhGXfZG/evOTy+JEyRdHvI+wub72XOIyvag==","shasum":"7a862e43d9fe4e4dd78c2b1dcc2067099151f5b2","tarball":"https://registry.npmjs.org/@ash0080/one-char-hash/-/one-char-hash-1.0.3.tgz","fileCount":9,"unpackedSize":8295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3piOCRA9TVsSAnZWagAAfaYP+webUfO74DhScc/VEwrJ\nK/7vDeUJI+Kf9S42E8WJLLnY6atn81G52RQipv3HcpaagBw/PD3HEdeuJIo2\nN7B1iVuPU5iJ2HZMqgjd/D7BxtQ5k97ql/d6HJfvFPD2mo2A0Vqmk3MFYR96\n69VYq04Vl7ntIkFod4J+EMa9RfR481Hgaf+MfrLa9GuNGXvwQyESjmLStP0v\nPnwGFStT40FFdaKNLEzZx8kfrzEaoxdOmAT6GyZc7J/ZOuKdQrh+hGFEZppj\nfWtaG8g6WkpK7Mm4v3scBb57sEJl7V1cMbGuy/jDdCemGSztn4PgKncCkRH4\nWUSvGHQ9n2+LqY8StfqiAx9LrmSPGyaV5lCBjwWsibMV9KRBGjYcb7njs0gN\n/Yvd2Qp8oJTBVIACTyEYoe/s4VEd/ef+Ks3OadPEL/RDnO+v0ilZKb60LJR9\nSktmI7nrVYE7wwWTiZtwv58cMzfOFveMNQJUw8kdfQOO65Eche13NgqACQ8G\nFb4yMndxm+jm7zfdUA2lGpKS1DjIHmHCa4os+kVI/YilNGEuE6iKjo2twtEm\nSANrM5ufOl0lkosylZWmxiycfyMPsdn+mH5f7IbXNubEqg1gpaEe+3/auQbb\n912RTzUzbK1/iKFwCi2M46P19v9qJF9prKPz9KKt8B+aB2MO/La5Pd7Z0eyC\nJqn+\r\n=AIfR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICvYkXsyLuTxkohorTVru1QKJ1OS8Li1eSQjoelUQPUaAiBokwpyJiaTmoJwEeExOCwhGWEQKqaHgEeb7u4er9tF3g=="}]},"_npmUser":{"name":"ash0080","email":"ash0080@gmail.com"},"directories":{},"maintainers":[{"name":"ash0080","email":"ash0080@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/one-char-hash_1.0.3_1641977998822_0.22459056772172747"},"_hasShrinkwrap":false},"1.0.4":{"name":"@ash0080/one-char-hash","version":"1.0.4","repository":{"type":"git","url":"git+https://github.com/ash0080/one-char-hash.git"},"description":"Input an arbitrary length string, return a unicode char, collision possible ≈ 1/ 1 million, can be used as a simple extreme short hash, can be used for user fingerprint verification or other scenarios","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["extrem-short-hash","unicode"],"author":{"name":"ash0080"},"license":"ISC","devDependencies":{"tap":"^15.1.5"},"gitHead":"c2c727213acf3aee9b917a7aaffab0601f340bff","bugs":{"url":"https://github.com/ash0080/one-char-hash/issues"},"homepage":"https://github.com/ash0080/one-char-hash#readme","_id":"@ash0080/one-char-hash@1.0.4","_nodeVersion":"14.18.2","_npmVersion":"8.3.0","dist":{"integrity":"sha512-lDf3Z2xfsRDJWYJCSI6DT1VOw5WC+6cCEGFk0967bq6IZJ4FF0Fq1PZV4zlcEAE1Tlk02MSyFX5RVnogMncqSw==","shasum":"169862a122afb28e7007765b4945cd6ca7790b00","tarball":"https://registry.npmjs.org/@ash0080/one-char-hash/-/one-char-hash-1.0.4.tgz","fileCount":9,"unpackedSize":8265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3sRzCRA9TVsSAnZWagAA764P/1j2weV+BgsbslQDAloW\nIBK7fk8UFhxLfh7ZBfx4Fg5vB4sEByL5iq5InIfePcNS1U4z96CFpnyPOcBW\nsj5oVnugXlplJgAmtzJSpOk1ZA6+A6TV/QfOPPB05DjJRfP9At/+kjeD83uy\nuIyNiX7CQiVZ+HuSUmqzCt3XEw9+T2QEUTafgcLgaAzfXGT482jy9xPvtXrs\nzqZ5JB44DZDnI3bEDHFXjTOhfXXv+gVLsiHG+DkoEnWE1v87/NvFd2DqIKN8\nRMA04UiG0DrfPDkNKQ59WQBI+uweOPZr+FOEkC+T+Icwx3uACUBxGGwxpL2n\nBUTYDp2sY6Id6InKDQrg532RF8oggbLxm0z9YcocR/rLWXzdv+J1GPUqacnv\nzj0yRnWf5jvQnUf7dva8OHsfb/5VvqSCqDwm7liN9FZgzUx8g0u89I5gsY2F\ngPODeWYBu8vNlBqTua/g5JZ4XmM9+ITT2ChZjNIhLM0VV7FXgiqaN9KX6eJZ\nK5tCVwpz/ucm56RUivBfVmEelK+7DheZGaK/68U31xD4d9MXKkxuTdhewO8a\n+0WOJ69D4rrkuM5A3sfv7JfgzedOu4Q8UIeij3HrgkVtbwRP2vMtyNXMVJu7\ndTHAl8Bgw30MsFtmxIIb2Cl/ZbDixYhca+Qr4HrhqoMOfklI9diEoWnrsNZB\nBpwh\r\n=ECSW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3J+SrqAp0omkbvz2MdVIXRhBziI06XX6trNDAxLIm0AIhAKY7AM/TiKOHvxNpDWGIvumm9aKGehqmcpN0x0+CbJEC"}]},"_npmUser":{"name":"ash0080","email":"ash0080@gmail.com"},"directories":{},"maintainers":[{"name":"ash0080","email":"ash0080@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/one-char-hash_1.0.4_1641989235011_0.14072956782770119"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-12T04:58:54.713Z","1.0.0":"2022-01-12T04:58:54.940Z","modified":"2022-04-04T15:45:15.795Z","1.0.1":"2022-01-12T05:03:29.772Z","1.0.2":"2022-01-12T06:15:05.069Z","1.0.3":"2022-01-12T08:59:58.995Z","1.0.4":"2022-01-12T12:07:15.415Z"},"maintainers":[{"name":"ash0080","email":"ash0080@gmail.com"}],"description":"Input an arbitrary length string, return a unicode char, collision possible ≈ 1/ 1 million, can be used as a simple extreme short hash, can be used for user fingerprint verification or other scenarios","homepage":"https://github.com/ash0080/one-char-hash#readme","keywords":["extrem-short-hash","unicode"],"repository":{"type":"git","url":"git+https://github.com/ash0080/one-char-hash.git"},"author":{"name":"ash0080"},"bugs":{"url":"https://github.com/ash0080/one-char-hash/issues"},"license":"ISC","readme":"# one-char-hash\n\n## Changelogs\n1.0.3 Add a aimple 1-Demension vector feature to reduce the possibility of short string collisions\n\n## Motive\nI just wanted to create an extremely short hash for certain checksum scenarios to reduce data transfer or storage, and it turned out beyond my expectation that I could represent it with only 1 character！\n\nSo unlike a regular hash, you can score this hash string by comparing each character.\n\nThe algorithm itself is very simple, because the UTF-16 maximum value is 0x10FFFF and your hash will hardly be repeated with ascii string length < 9132, but the actual situation may be a little smaller than that, as to how to calculate the real possibility is beyond my current mathematical knowledge, so I mark it as AS IS, please use it with caution in production environments.\n\n## Usage\n```js\nimport hash from '@ash0080/one-char-hash';\nconst hashedC = hash('this is a special string!'); // => \"ऎ\"\n```\n\n## Changelog\n\nThe changelog can be found on the [Releases page](https://github.com/ash0080/one-char-hash/releases).\n\n## Contributing\n\nEveryone is welcome to contribute. Please take a moment to review the [contributing guidelines](Contributing.md).\n\n## Authors and license\n\n[ash0080](Feanor) and [contributors](https://github.com/ash0080/one-char-hash/graphs/contributors).\n\nMIT License, see the included [License.md](License.md) file.\n","readmeFilename":"Readme.md"}