{"_id":"optimus-js","_rev":"6-a2effb979242830507f7e0d61e572b51","name":"optimus-js","description":"Knuths multiplicative hashing based id obfuscation for javascript (port of https://github.com/jenssegers/optimus).","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.0":{"name":"optimus-js","version":"0.1.0","description":"Knuths multiplicative hashing based id obfuscation for javascript (port of https://github.com/jenssegers/optimus).","main":"optimus.js","scripts":{"test":"jasmine-node ./test && phantomjs test/run-jasmine.js test/jasmine.html"},"author":{"name":"Chamindu R. Munasinghe","email":"cmunasinghe@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/chamindu/optimus-js.git"},"homepage":"https://github.com/chamindu/optimus-js","bugs":{"url":"https://github.com/chamindu/optimus-js/issues"},"keywords":["optimus","hash","multiplicative","obfuscation","ids"],"license":"MIT","devDependencies":{"jasmine-node":"^1.14.5"},"dependencies":{"long":"^3.0.3"},"gitHead":"9b8faf0bf4136f8ac19ebe4b2590d8a51f3d7487","_id":"optimus-js@0.1.0","_shasum":"16b32637e74d43b7706f094c29d42afcbc3b935f","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"chamindu","email":"cmunasinghe@gmail.com"},"dist":{"shasum":"16b32637e74d43b7706f094c29d42afcbc3b935f","tarball":"https://registry.npmjs.org/optimus-js/-/optimus-js-0.1.0.tgz","integrity":"sha512-BbJPEW+I4oNG2kIrR8bRCwX0Et6sWEp4TyYwfCRmV9q/dbQPHu9NkChYCOO8/TKi5QOxnFvZfsQGgA3ksDvTyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFs2fVaegRm1BsG5kxxDSD00eICxS/n572ewmKYyajoyAiEA5nbiy0nuvnp8EsGYSpg3j7PZYyZg2niMLb5/+j4X7a8="}]},"maintainers":[{"name":"chamindu","email":"cmunasinghe@gmail.com"}],"directories":{}},"0.1.2":{"name":"optimus-js","version":"0.1.2","description":"Knuths multiplicative hashing based id obfuscation for javascript (port of https://github.com/jenssegers/optimus).","main":"optimus.js","scripts":{"test":"jasmine-node ./test && phantomjs test/run-jasmine.js test/jasmine.html"},"author":{"name":"Chamindu R. Munasinghe","email":"cmunasinghe@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/chamindu/optimus-js.git"},"homepage":"https://github.com/chamindu/optimus-js","bugs":{"url":"https://github.com/chamindu/optimus-js/issues"},"keywords":["optimus","hash","multiplicative","obfuscation","ids"],"license":"MIT","devDependencies":{"jasmine-node":"^1.14.5"},"dependencies":{"long":"^3.0.3"},"gitHead":"3a2b4ab2b49d9bc7e0f312096c98916dd9a02a5f","_id":"optimus-js@0.1.2","_shasum":"452f417853eb3f81f23f7a6f9039caca0a93b9f6","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"chamindu","email":"cmunasinghe@gmail.com"},"dist":{"shasum":"452f417853eb3f81f23f7a6f9039caca0a93b9f6","tarball":"https://registry.npmjs.org/optimus-js/-/optimus-js-0.1.2.tgz","integrity":"sha512-sbH/EOiUcARX8NSPTxsmi7yjPZ+t3IELFbp14GSlfGeTRvqjV7sudKdCorhhbCpzvbCKI3QM4OLU+PUjY45bIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDptmLyUvEsh2o1kSYw8AvjOxiqRQP8fMzKY2zpP8WkBgIhANp/UmZ8IcBpiJ0JQZFhVWZoBuw70UVZXB1In6cJ5xxB"}]},"maintainers":[{"name":"chamindu","email":"cmunasinghe@gmail.com"}],"directories":{}},"0.1.4":{"name":"optimus-js","version":"0.1.4","description":"Knuths multiplicative hashing based id obfuscation for javascript (port of https://github.com/jenssegers/optimus).","main":"optimus.js","types":"optimus.d.ts","scripts":{"test":"jasmine-node ./test && phantomjs test/run-jasmine.js test/jasmine.html"},"author":{"name":"Chamindu R. Munasinghe","email":"cmunasinghe@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/chamindu/optimus-js.git"},"homepage":"https://github.com/chamindu/optimus-js","bugs":{"url":"https://github.com/chamindu/optimus-js/issues"},"keywords":["optimus","hash","multiplicative","obfuscation","ids"],"license":"MIT","devDependencies":{"jasmine-node":"^3.0.0"},"dependencies":{"long":"^3.0.3"},"gitHead":"44e6dcd0b197c7754fae04ad22c89b199d73274f","_id":"optimus-js@0.1.4","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"chamindu","email":"cmunasinghe@gmail.com"},"dist":{"integrity":"sha512-9Pa2CbxRxwQbGD1d5ASaatINp1MgoYF7c2rg7oEBHs0jlT7ZwwcKxiPIz48WDMOTmwj7WsdTmsWDtQ7MYGo91Q==","shasum":"9108aff17dc6103eb0a60eeefc0dc6abad44af4b","tarball":"https://registry.npmjs.org/optimus-js/-/optimus-js-0.1.4.tgz","fileCount":14,"unpackedSize":110432,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdnV9oCRA9TVsSAnZWagAAcI0QAJaWCGJMegsfdo/sCp4S\nEFVb9noqo8ZG0ZclWjZEiGOn5YnrVKitALai3girqao7ZU/lXF6UmkXnjrN+\nQyPMOHuJMTFWo2XovEizVMjD+bjLTRbf49HEkAyxoL8lpcx85r7jI51yQiI2\nxYAMgordCO5BgYIDDHpDk04hT/KrFa9DBpsc6pGxT4z8EMkFZVnVyGptLcv4\nyD2cm218z8b67IHNpviasOt+eEG6YVlc/1fHsdsls6Aj0de1C03ZvWe9w4A3\nGQM6aFyZxG24z/u1MlxMkPDId7yiXW+6EF0Vi078+lrrgK93BRhfvYTgIij2\nDz101xXSxRWsE3AIGpMhNDYTtn0ds307wTUGsxXcMGkHjrKLSRoakERDQjoq\nWhcqFbC7h1RUHuWwFWmiG+RkGKC97udvEJAcWHKoAiCrzm3AoCKVLvhWoi3t\n+MC9lqh1IOa80ofy5C8BS+M6EKyia4O/4MKw8/yuvYdNtnnX0XO+TjHO4wtj\n7bekRU9Yi5YlGrR3c/s8xBLFRtSbj5qiJd/Em7V9bDPQBK0cALedCWTF2qPa\nxA81naNTZFWJ5gYsUwuAXSrOxhECUbbgarvCYZEpLkLB1x8G1N0gg7cto+so\n5+rSjmOLspugpW4d9QMtwvs+DExTeevaFTYmehb+w+Anm7kNCVd4q1PVqFeL\nvGrc\r\n=V6lH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDH2bIp/goT4es+UEMZu+dFW8FCN3jg1g/FT8MTJvbW1AIhAJXZ+p7VTsgGqUGXEi3ZC0z6PWOoDvUYfEfg1c86X+34"}]},"maintainers":[{"name":"chamindu","email":"cmunasinghe@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/optimus-js_0.1.4_1570594664053_0.5524980760560447"},"_hasShrinkwrap":false}},"readme":"Knuth's integer hashing based id obfuscation\n============================================\n[![Build Status](http://img.shields.io/travis/chamindu/optimus-js.svg)](https://travis-ci.org/chamindu/optimus-js) [![Latest build](https://img.shields.io/npm/v/optimus-js.svg)](https://www.npmjs.com/package/optimus-js)\n\nThis is a port of [jenssegers/optimus](https://github.com/jenssegers/optimus) PHP library for Javascript. It works on the browser as well as node.\n\nInstallation\n-------------\n\n```\nnpm install optimus-js\n```\n\n```\nbower install optimus-js\n```\n\nUsage\n-----\nTo initialize the library you need 3 things.\n\n- Large prime number lower than 2147483647 (prime)\n- The inverse prime so that (prime * inverse) & 2147483647 = 1\n- A large random number lower than 2147483647\n\nfor more info and a command line too to generate these values please refer the [original project](https://github.com/jenssegers/optimus)\n\nusing the above parameters you can create instances of Optimus(prime, inverse, random)\n\n\n```\nvar Optimus = require('optimus');\n\nvar optimus = new Optimus(1580030173, 59260789, 1163945558);\n```\n\nAfter that you can use encode and decode methods to encode/decode positive integers ranging from (0 to 2147483647). \n\n```\nvar hash = optimus.encode(25);\nvar original = optimus.decode(hash);\n```\n\n***Warning***: Please note that this library only provides obfuscation and not encryption.\n\n","maintainers":[{"name":"chamindu","email":"cmunasinghe@gmail.com"}],"time":{"modified":"2022-06-23T01:16:21.423Z","created":"2016-01-28T20:33:03.846Z","0.1.0":"2016-01-28T20:33:03.846Z","0.1.2":"2016-01-29T08:16:49.421Z","0.1.4":"2019-10-09T04:17:44.164Z"},"homepage":"https://github.com/chamindu/optimus-js","keywords":["optimus","hash","multiplicative","obfuscation","ids"],"repository":{"type":"git","url":"git+ssh://git@github.com/chamindu/optimus-js.git"},"author":{"name":"Chamindu R. Munasinghe","email":"cmunasinghe@gmail.com"},"bugs":{"url":"https://github.com/chamindu/optimus-js/issues"},"license":"MIT","readmeFilename":"README.md"}