{"_id":"ctph.js","_rev":"8-d6eac68ec27a8d80ccaa796731c02436","name":"ctph.js","description":"JavaScript's library for calculating context triggered piecewise hash(CTPH) also called fuzzy hashing.","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.1":{"name":"ctph.js","description":"JavaScript's library for calculating context triggered piecewise hash(CTPH) also called fuzzy hashing.","keywords":["fuzzy","hashing","context","triggered","piecewise","hash","ctph","ssdeep"],"author":{"name":"huwenshuo","email":"huwenshuo@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/huwenshuo/ctph.js.git"},"main":"ctph.js","version":"0.0.1","gitHead":"618206264f663b2095d126ccb85cc0bacf8f0613","bugs":{"url":"https://github.com/huwenshuo/ctph.js/issues"},"homepage":"https://github.com/huwenshuo/ctph.js#readme","_id":"ctph.js@0.0.1","scripts":{},"_shasum":"ef913dc9bfb4cd79d9926e9cf85628bb0d3362d5","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.10.35","_npmUser":{"name":"blackbird","email":"huwenshuo@gmail.com"},"dist":{"shasum":"ef913dc9bfb4cd79d9926e9cf85628bb0d3362d5","tarball":"https://registry.npmjs.org/ctph.js/-/ctph.js-0.0.1.tgz","integrity":"sha512-OVtDHWszBuUr4v4BA5PU8FmZ4t/sQdyCGSPAp2+k/y9mjZgEmUW4ey2OtDREXaCFVSceHHuOgHRH0r9zI55gsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGdAJDwKerFUDeszJMdf9Ch9JcCeTcnXjVjNDgF6H0izAiABRc5OIv2n9S/WRk1mKJ1Edzgug04j2UlDRFd4/1o8zQ=="}]},"maintainers":[{"name":"blackbird","email":"huwenshuo@gmail.com"}]},"0.0.2":{"name":"ctph.js","description":"JavaScript's library for calculating context triggered piecewise hash(CTPH) also called fuzzy hashing.","keywords":["fuzzy","hashing","context","triggered","piecewise","hash","ctph","ssdeep"],"author":{"name":"huwenshuo","email":"huwenshuo@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/huwenshuo/ctph.js.git"},"main":"ctph.js","version":"0.0.2","gitHead":"9e498aa42158904c7531e75545917402c031277a","bugs":{"url":"https://github.com/huwenshuo/ctph.js/issues"},"homepage":"https://github.com/huwenshuo/ctph.js#readme","_id":"ctph.js@0.0.2","scripts":{},"_shasum":"564ea07d7818ad9ddf911d254f53998101a8806a","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.10.35","_npmUser":{"name":"blackbird","email":"huwenshuo@gmail.com"},"dist":{"shasum":"564ea07d7818ad9ddf911d254f53998101a8806a","tarball":"https://registry.npmjs.org/ctph.js/-/ctph.js-0.0.2.tgz","integrity":"sha512-0YjZ1X1j+FyUoD1Qd5NQljE+FYZ380SMaXMnbRm9ilPLphLoHbfFTMG/fjMuc72iFA13CUM31NbibCSh2aCA7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGG8j7EW+X7Ow/PCNgaGWb+z/eAqUU2mbpStRq33b7zAIhAIrmk5ruKeQycXZuNFvGwlxeAK2BOT8HaKKLdqznynam"}]},"maintainers":[{"name":"blackbird","email":"huwenshuo@gmail.com"}]},"0.0.3":{"name":"ctph.js","description":"JavaScript's library for calculating context triggered piecewise hash(CTPH) also called fuzzy hashing.","keywords":["fuzzy","hashing","context","triggered","piecewise","hash","ctph","ssdeep"],"author":{"name":"huwenshuo","email":"huwenshuo@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/huwenshuo/ctph.js.git"},"main":"ctph.js","version":"0.0.3","gitHead":"676388bb439f2def11bb29056d55f637a42fb473","bugs":{"url":"https://github.com/huwenshuo/ctph.js/issues"},"homepage":"https://github.com/huwenshuo/ctph.js#readme","_id":"ctph.js@0.0.3","scripts":{},"_shasum":"aeedf600388600426d0ab9fc1840df11b1c93438","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.10.35","_npmUser":{"name":"blackbird","email":"huwenshuo@gmail.com"},"dist":{"shasum":"aeedf600388600426d0ab9fc1840df11b1c93438","tarball":"https://registry.npmjs.org/ctph.js/-/ctph.js-0.0.3.tgz","integrity":"sha512-QSANbRk6Gf+mmrUzdc9obplY2utKovTIpNQ2/IN6EPVF6AcpSunKeXC430CH008Xjlmi0Qn0gJhPuPXuiMRCjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCegLq/l7XrwrcR9SHsAh+KBzcztcyB8ng+ZwBUWBh3nAIhAK4q7vtx8CavaQSgh2os4Pttzb8xJM2DxXs7xbfEAdUO"}]},"maintainers":[{"name":"blackbird","email":"huwenshuo@gmail.com"}]},"0.0.4":{"name":"ctph.js","description":"JavaScript's library for calculating context triggered piecewise hash(CTPH) also called fuzzy hashing.","keywords":["fuzzy","hashing","context","triggered","piecewise","hash","ctph","ssdeep"],"author":{"name":"huwenshuo","email":"huwenshuo@gmail.com"},"repository":{"type":"git","url":"https://github.com/huwenshuo/ctph.js.git"},"main":"ctph.js","version":"0.0.4","gitHead":"9c5e8c7560e785482b6ab002e6c6035b7e5238e3","bugs":{"url":"https://github.com/huwenshuo/ctph.js/issues"},"homepage":"https://github.com/huwenshuo/ctph.js","_id":"ctph.js@0.0.4","scripts":{},"_shasum":"cd2a9a6a40fcedc72724f014e840e15fea7653be","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.2","_npmUser":{"name":"blackbird","email":"huwenshuo@gmail.com"},"dist":{"shasum":"cd2a9a6a40fcedc72724f014e840e15fea7653be","tarball":"https://registry.npmjs.org/ctph.js/-/ctph.js-0.0.4.tgz","integrity":"sha512-Xja4eyhEgYIFRQhu6V3VivtTudkeWZCD77TW1yvRbZzX9PW+CE+bt67QRGEGskNkqtLmZYzIcrOgKrEHPB1d+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGrHe2kX4wjJoPbtooTSlWxJoUpbWFkcLOePqbUFmM0IAiEA8g4IrvFcrrlCdAaIi1qRLVsEFkW4bCUq72c8sgOM2oA="}]},"maintainers":[{"name":"blackbird","email":"huwenshuo@gmail.com"}]},"0.0.5":{"name":"ctph.js","description":"JavaScript's library for calculating context triggered piecewise hash(CTPH) also called fuzzy hashing.","keywords":["fuzzy","hashing","context","triggered","piecewise","hash","ctph","ssdeep"],"author":{"name":"huwenshuo","email":"huwenshuo@gmail.com"},"repository":{"type":"git","url":"https://github.com/huwenshuo/ctph.js.git"},"main":"ctph.js","version":"0.0.5","gitHead":"5398fc6efa6619737e4decb618a517dd6ddd42a9","bugs":{"url":"https://github.com/huwenshuo/ctph.js/issues"},"homepage":"https://github.com/huwenshuo/ctph.js","_id":"ctph.js@0.0.5","scripts":{},"_shasum":"17ec5ddd1dbe68f151be3d446cf18d461b95f2e7","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.2","_npmUser":{"name":"blackbird","email":"huwenshuo@gmail.com"},"dist":{"shasum":"17ec5ddd1dbe68f151be3d446cf18d461b95f2e7","tarball":"https://registry.npmjs.org/ctph.js/-/ctph.js-0.0.5.tgz","integrity":"sha512-xcgQ6zzamT6ESHBhFPZHjkcpjzv4rtWw9GLoeNwvQwQQdXNR49xKBF5/Nt1oLsE3X1JM8QHktbGknp5cH20PTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDJzU2XrTJZ0VQSPDRdKcxS3IQfLYt4JGO5Tb6mfZGjtAiBUuFLuZWREmp4xhglSKQVCyl1DbH6K5nZCKpG8ob+tQw=="}]},"maintainers":[{"name":"blackbird","email":"huwenshuo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/ctph.js-0.0.5.tgz_1455519853263_0.2576453392393887"}}},"readme":"# The ctph.js\n\nJavaScript library for calculating context triggered piecewise hash(CTPH, also called fuzzy hashing). CTPH can be used to identify similar or almost identical content(text,img,etc.), the library can works both on NodeJS and browser.\n\nMore information about CTPH: [Identifying almost identical files using context triggered piecewise hashing](http://dfrws.org/2006/proceedings/12-Kornblum.pdf \"Title\")\n\n# Install\n\n```\nnpm install ctph.js\n```\n\n# Example\n\n```js\nvar ctph = require('ctph.js');\n\nvar str1 = \"Java is a computer programming language, Not to be confused with JavaScript.\";\nvar str2 = \"JavaScript is a computer programming language, Not to be confused with Java.\";\n\nvar d1 = ctph.digest(str1);\nvar d2 = ctph.digest(str2);\nvar similarity = ctph.similarity(d1, d2);// 75\n\nvar crypto = require('crypto');\nvar rd1 = ctph.digest(crypto.randomBytes(4096));\nvar rd2 = ctph.digest(crypto.randomBytes(4096));\nvar rsimilarity = ctph.similarity(rd1, rd2); //nears 0\n```\n\n# License\nMIT","maintainers":[{"name":"blackbird","email":"huwenshuo@gmail.com"}],"time":{"modified":"2022-06-14T05:31:37.165Z","created":"2015-06-10T11:41:55.728Z","0.0.1":"2015-06-10T11:41:55.728Z","0.0.2":"2015-06-10T11:52:55.448Z","0.0.3":"2015-06-10T13:36:04.513Z","0.0.4":"2015-11-26T05:43:57.501Z","0.0.5":"2016-02-15T07:04:16.926Z"},"homepage":"https://github.com/huwenshuo/ctph.js","keywords":["fuzzy","hashing","context","triggered","piecewise","hash","ctph","ssdeep"],"repository":{"type":"git","url":"https://github.com/huwenshuo/ctph.js.git"},"author":{"name":"huwenshuo","email":"huwenshuo@gmail.com"},"bugs":{"url":"https://github.com/huwenshuo/ctph.js/issues"},"readmeFilename":"README.md","users":{"morkrispil":true}}