{"versions":{"2.5.3":{"author":{"name":"Jeff Guo","email":"gwjjeff@gmail.com"},"name":"cryptojs","tags":["Hash","MD5","SHA1","SHA-1","SHA256","SHA-256","RC4","Rabbit","AES","DES","PBKDF2","HMAC","OFB","CFB","CTR","CBC","Base64"],"description":"Following googlecode project crypto-js, provide standard and secure cryptographic algorithms for NodeJS. Support MD5, SHA-1, SHA-256, RC4, Rabbit, AES, DES, PBKDF2, HMAC, OFB, CFB, CTR, CBC, Base64","version":"2.5.3","homepage":"https://github.com/gwjjeff/cryptojs","repository":{"type":"git","url":"git://github.com/gwjjeff/cryptojs.git"},"main":"cryptojs.js","engines":{"node":"*"},"dependencies":{},"devDependencies":{},"_npmUser":{"name":"anonymous","email":"gwjjeff@gmail.com"},"_id":"cryptojs@2.5.3","_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cryptojs/-/cryptojs-2.5.3.tgz","shasum":"909547ecf15bac456e275459b39f2ef45d7fcbb9","size":24385,"noattachment":false,"integrity":"sha512-+rdPl1UCxE8s3R94NNn+zMKOiI4MJ7dyh3X0c5uBL3btDr4zQ6acd7f9mY7Wb5MrccZEi2Rrha3OEtLcc5XXog=="},"maintainers":[{"name":"anonymous","email":"gwjjeff@gmail.com"}],"directories":{},"publish_time":1326505286045,"_hasShrinkwrap":false,"_cnpm_publish_time":1326505286045,"_cnpmcore_publish_time":"2021-12-16T22:03:27.664Z","contributors":[]}},"dist-tags":{"latest":"2.5.3"},"name":"cryptojs","time":{"created":"2022-01-27T00:05:06.441Z","modified":"2023-08-07T01:19:16.055Z","2.5.3":"2012-01-14T01:41:26.045Z"},"readme":"cryptojs\n--------\n\n* with little modification, converted from googlecode project [crypto-js](http://code.google.com/p/crypto-js/), and keep the source code structure of the origin project on googlecode\n* source code worked in both browser engines and node scripts. see also: [https://github.com/gwjjeff/crypto-js-npm-conv](https://github.com/gwjjeff/crypto-js-npm-conv)\n* inspiration comes from [ezcrypto](https://github.com/ElmerZhang/ezcrypto), but my tests cannot pass with his version ( ECB/pkcs7 mode ), so I made it myself\n\n### install\n\n<pre>\nnpm install cryptojs\n</pre>\n\n### usage (example with [coffee-script](http://coffeescript.org/))\n\n<pre>\nCrypto = (require 'cryptojs').Crypto\nkey = '12345678'\nus = 'Hello, 世界!'\n\nmode = new Crypto.mode.ECB Crypto.pad.pkcs7\n\nub = Crypto.charenc.UTF8.stringToBytes us\neb = Crypto.DES.encrypt ub, key, {asBytes: true, mode: mode}\nehs= Crypto.util.bytesToHex eb\n\neb2= Crypto.util.hexToBytes ehs\nub2= Crypto.DES.decrypt eb2, key, {asBytes: true, mode: mode}\nus2= Crypto.charenc.UTF8.bytesToString ub2\n# should be same as the var 'us'\nconsole .log us2\n</pre>","users":{}}