{"_id":"react-native-crypto-js","_rev":"1-cbb769ad2b94dc663681c8ba3f81f7a0","name":"react-native-crypto-js","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"react-native-crypto-js","version":"1.0.0","description":"CryptoJS is a growing collection of standard and secure cryptographic algorithms implemented in JavaScript using best practices and patterns. They are fast, and they have a consistent and simple interface.","main":"CryptoJS.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Chintan Prajapati","email":"chintanprajapati37@gmail.com","url":"http://chintanprajapati.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/imchintan/react-native-crypto-js.git"},"keywords":["react","react-native","crypto","crypto-js"],"bugs":{"url":"https://github.com/imchintan/react-native-crypto-js/issues"},"homepage":"https://github.com/imchintan/react-native-crypto-js#readme","gitHead":"f9bf05dbc6f92400f53204776ad968d20d305ac2","_id":"react-native-crypto-js@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"9.5.0","_npmUser":{"name":"chintanprajapati","email":"chintanprajapati37@gmail.com"},"dist":{"integrity":"sha512-FNbLuG/HAdapQoybeZSoes1PWdOj0w242gb+e1R0hicf3Gyj/Mf8M9NaED2AnXVOX01b2FXomwUiw1xP1K+8sA==","shasum":"e677e022e147f41b35614416c92d655f87e2450a","tarball":"https://registry.npmjs.org/react-native-crypto-js/-/react-native-crypto-js-1.0.0.tgz","fileCount":4,"unpackedSize":20948,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbt1+DCRA9TVsSAnZWagAATtkP/3MtqiOMSIdwteVEMw4F\nHxPobOaj3wGjhzvHm8kpusGZJDiAX2VED0C5mkV7pwpGOs+7hwZBB9T16Ahw\nFKTZFnKcXw757DtTilPrjXj9mF8RPSqRZwwNnUpgKajAax+K8zVZC4QReOM1\n8RXAZKqGjV8f18rl3fdTQNPI4e3Z0agP5ixW9cPOUhxI8WzWgCopfItv5WwN\nwjaz766XJ3pzLGKSlkLHkkOtQvxQBFbYZVZB3SUun79gaMpH9PJ/OzsOcjPk\njlygtT3MIkXMx6JkeL3RZQolwvZ0MJN1jcVfQVTEPdj4MVJN6FFa1P16AlgM\nPYJBWl4t96MbjqCmuK+gM0Xtm1QtZv0Baz7yGis+tqrYeETVevHUWTMvO6Hf\nBPUMCpJPge71oBD/oMwgJpfDOO2tjt+6ftK+FLnEoQFUT7DJptVeTrKVo32z\nS8bfg86ogrA4m1Bqa4sjyhx/sUoaX0cJ6xCdGei8A4TpZWJz2FYdsP2bH3k6\ngS80G4/HHNOmoOHeUjmXj7yXKdS2JgziN2A/Re29ShDhRDRPlMLhZ87LDz32\nQXTSIa3wY5M5slF1dYG6pDq8a/bs4JXRZB6ReRualzxg5j/2X2UapVawHHBG\n3Fcj3TNLr2RK/d6vDY0pKBbY/etLi6qimZlO+rX/87UqDIvPZkuFZ3tWhpmc\n0+E7\r\n=ICrF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2eOQl0uFd2COrqwapSSWEPQuv6fslsjXEcM/ZVD7F1wIhAOadF6ye7sRTjZicVZQISJOArdK8IHbQaAoz2DK2j/Zg"}]},"maintainers":[{"name":"chintanprajapati","email":"chintanprajapati37@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-crypto-js_1.0.0_1538744195144_0.9081568597934986"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-05T12:56:35.143Z","1.0.0":"2018-10-05T12:56:35.297Z","modified":"2022-05-14T16:57:35.889Z"},"maintainers":[{"name":"chintanprajapati","email":"chintanprajapati37@gmail.com"}],"description":"CryptoJS is a growing collection of standard and secure cryptographic algorithms implemented in JavaScript using best practices and patterns. They are fast, and they have a consistent and simple interface.","homepage":"https://github.com/imchintan/react-native-crypto-js#readme","keywords":["react","react-native","crypto","crypto-js"],"repository":{"type":"git","url":"git+https://github.com/imchintan/react-native-crypto-js.git"},"author":{"name":"Chintan Prajapati","email":"chintanprajapati37@gmail.com","url":"http://chintanprajapati.com"},"bugs":{"url":"https://github.com/imchintan/react-native-crypto-js/issues"},"license":"MIT","readme":"# React Native CryptoJS\n\nReact native javascript library of crypto standards.\n\n## Install\n\n\n```bash\nnpm install react-native-crypto-js\n```\n\n### Usage\n\nES6 import for typical API call signing use case:\n\n\n```javascript\nvar AES = require(\"react-native-crypto-js\").AES;\nvar SHA256 = require(\"react-native-crypto-js\").SHA256;\n...\nconsole.log(SHA256(\"Message\"));\n```\n\n## API\n\nSee: https://code.google.com/p/crypto-js\n\n### AES Encryption\n\n#### Plain text encryption\n\n```javascript\nimport CryptoJS from \"react-native-crypto-js\";\n\n// Encrypt\nlet ciphertext = CryptoJS.AES.encrypt('my message', 'secret key 123').toString();\n\n// Decrypt\nlet bytes  = CryptoJS.AES.decrypt(ciphertext, 'secret key 123');\nlet originalText = bytes.toString(CryptoJS.enc.Utf8);\n\nconsole.log(originalText); // 'my message'\n```\n\n#### Object encryption\n\n```javascript\nimport CryptoJS from \"react-native-crypto-js\";\n\nlet data = [{id: 1}, {id: 2}]\n\n// Encrypt\nlet ciphertext = CryptoJS.AES.encrypt(JSON.stringify(data), 'secret key 123').toString();\n\n// Decrypt\nlet bytes  = CryptoJS.AES.decrypt(ciphertext, 'secret key 123');\nlet decryptedData = JSON.parse(bytes.toString(CryptoJS.enc.Utf8));\n\nconsole.log(decryptedData); // [{id: 1}, {id: 2}]\n```\n\n### List of Algorithms\n\n#### Hashers\n\n- ```MD5```\n- ```SHA1```\n- ```SHA256```\n- ```SHA512```\n- ```SHA224```\n- ```SHA384```\n- ```SHA3```\n- ```RIPEMD160```\n---\n#### HMAC\n- ```HmacMD5```\n- ```HmacSHA1```\n- ```HmacSHA256```\n- ```HmacSHA224```\n- ```HmacSHA512```\n- ```HmacSHA384```\n- ```HmacSHA3```\n- ```HmacRIPEMD160```\n---\n#### PBKDF2\n- ```PBKDF2```\n---\n#### Ciphers\n- ```AES```\n- ```DES```\n- ```TripleDES```\n- ```RC4```\n- ```RC4Drop```\n- ```Rabbit```\n\n## Reporting Issues\n\n[Bugs | New Features](https://github.com/imchintan/react-native-crypto-js/issues)\n\n\n## Contributing\nCheck the issues and pull requests to see if the idea or bug you want to share about is already present. If you don't see it, do one of the following:\n\n* If it is a small change, just fork the project and create a pull request.\n* If it is major, start by opening an issue.\n\n\n## Help Wanted!\n\nIf you're familiar with React Native, and you'd like to see this project progress, please consider contributing.\n\n\n## License\n\nPlease see [LICENSE](LICENSE) for more info.\n","readmeFilename":"README.md"}