{"id":20670888,"url":"https://github.com/orsifrancesco/npm-rc4","last_synced_at":"2025-04-19T18:36:31.498Z","repository":{"id":65465110,"uuid":"265335817","full_name":"orsifrancesco/npm-rc4","owner":"orsifrancesco","description":"A list of useful rc4 and base64 functions for Node.js and Browser.","archived":false,"fork":false,"pushed_at":"2021-11-08T09:11:41.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-06T12:45:24.938Z","etag":null,"topics":["base64","javascript","node","nodejs","npm","npm-package","rc4","rc4-algorithm","rc4-encryption"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orsifrancesco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-19T18:52:28.000Z","updated_at":"2023-04-21T11:45:44.000Z","dependencies_parsed_at":"2023-01-24T17:45:25.856Z","dependency_job_id":null,"html_url":"https://github.com/orsifrancesco/npm-rc4","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsifrancesco%2Fnpm-rc4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsifrancesco%2Fnpm-rc4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsifrancesco%2Fnpm-rc4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsifrancesco%2Fnpm-rc4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orsifrancesco","download_url":"https://codeload.github.com/orsifrancesco/npm-rc4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224967439,"owners_count":17399872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["base64","javascript","node","nodejs","npm","npm-package","rc4","rc4-algorithm","rc4-encryption"],"created_at":"2024-11-16T20:23:58.092Z","updated_at":"2024-11-16T20:23:58.594Z","avatar_url":"https://github.com/orsifrancesco.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# npm-rc4\n\n[![NPM version](https://img.shields.io/npm/v/npm-rc4.svg?style=flat)](https://www.npmjs.com/package/npm-rc4)\n\nA list of useful `rc4` and `base64` functions for [Node.js](https://nodejs.org) and Browser.\\\nDifferently from the previous version, it doesn't use `atob()` and `btoa()`; this guarantee a proper base64 conversion between different languages like PHP with `base64_encode` and `base64_decode`.\n\n![npm-rc4](https://user-images.githubusercontent.com/6490641/82446373-7401b280-9a9e-11ea-835b-7f6a75c55f65.gif \"npm-rc4\")\n\n## Installing\n\nUsing npm:\n\n```bash\n$ npm install npm-rc4\n```\n\n## Node.js\n\n```js\nconst {\n\trc4,\n\trc4Base64Encrypt,\n\trc4Base64Decrypt,\n\trc4Base64,\n\tisBase64,\n\tbase64encode, \n\tbase64decode\n} = require('npm-rc4');\n```\n\n## ES6\n\n```js\nimport {\n\trc4,\n\trc4Base64Encrypt,\n\trc4Base64Decrypt,\n\trc4Base64,\n\tisBase64,\n\tbase64encode,\n\tbase64decode\n} from 'npm-rc4';\n```\n\n## Examples\n\n```js\nconsole.log(\n\n\trc4(\n\t\t'this text is going to be encrypted',\n\t\t'your keword'\n\t)\n\n);\n// =\u003e ]}*g Ù\u0017Òo©ÌÜNXàÝâ­rÀÀÛÎ\u001dÿ¸\n\nconsole.log(\n\n\trc4Base64Encrypt(\n\t\t'this text is going to be encrypted and encoded with base64',\n\t\t'your keword'\n\t)\n\n);\n// =\u003e XX0qG8KkZ8KgwoLDmRfDkm/CqcKTw4zDnMKfTljDoMOdw6LCrXLDgMKbZ8OAw5vDjh3Dv8KCwrhWw51mXsK9wprDk8Kkw6UMfn7CvknCr24DN8KxdsOSwqFrwpQ=\n\nconsole.log(\n\n\trc4Base64Decrypt(\n\t\t'XX0qG8KkZ8KgwoLDmRfDkm/CqcKQw4bDlsKDUAjDoMOXwqbDr3bCjsKaKcOHw4zDlALDr8KCwrhWw4thTsO1w5/Dn8Kmw7kNLS4=',\n\t\t'your keword'\n\t)\n\n);\n// =\u003e this text is decrypted and decoded with base64\n\nconsole.log(\n\n\trc4Base64(\n\t\t'this function understands if the string have to be decoded or encoded with base64',\n\t\t'your keword'\n\t)\n\n);\n// =\u003e XX0qG8KkdcKwwpTDjkPDknPDp8OUw5bDm8KVTArDp8OGwqPCoXPCk8OeYMOFwonDgwXDrsOHwq8Cw45hVMO6w5/DlcKmw7wNO27DsR7CpH9Lc8K2dMOOwqA4w4TCicO4T8KHAzNlw4RvOsOvwp/DgSlgw6swwr3CpC1Swq14\n\nconsole.log(\n\n\trc4Base64(\n\t\t'XX0qG8KkdcKwwpTDjkPDknPDp8OUw5bDm8KVTArDp8OGwqPCoXPCk8OeYMOFwonDgwXDrsOHwq8Cw45hVMO6w5/DlcKmw7wNO27DsR7CpH9Lc8K2dMOOwqA4w4TCicO4T8KHAzNlw4RvOsOvwp/DgSlgw6swwr3CpC1Swq14',\n\t\t'your keword'\n\t)\n\t\n);\n// =\u003e this function understands if the string have to be decoded or encoded with base64\n\nconsole.log(\n\n\tisBase64('Y2lhbw==')\n\t\n);\n// =\u003e true\n\nconsole.log(\n\n\tisBase64('this string is not base64 of course')\n\t\n);\n// =\u003e false\n\nconsole.log(\n\n\tbase64encode('this string will be encoded with base64')\n\t\n);\n// =\u003e dGhpcyBzdHJpbmcgd2lsbCBiZSBlbmNvZGVkIHdpdGggYmFzZTY0\n\nconsole.log(\n\n\tbase64decode('dGhpcyBzdHJpbmcgd2lsbCBiZSBkZWNvZGVkIHdpdGggYmFzZTY0')\n\t\n);\n// =\u003e this string will be decoded with base64\n\n```\n\nThat's it :)\n\n## Demo\n\n[Just a example project where you can see npm-rc4 in action..](https://passwordonce.com)\n\n## License\n\nLicensed under MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsifrancesco%2Fnpm-rc4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forsifrancesco%2Fnpm-rc4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsifrancesco%2Fnpm-rc4/lists"}