{"id":20292501,"url":"https://github.com/mauricelambert/rc4encryption","last_synced_at":"2025-06-30T22:35:15.673Z","repository":{"id":57460257,"uuid":"425987968","full_name":"mauricelambert/RC4Encryption","owner":"mauricelambert","description":"This package implements RC4 encryption.","archived":false,"fork":false,"pushed_at":"2024-02-24T15:20:38.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T05:13:44.522Z","etag":null,"topics":["cipher","encryption","pypi-package","python3","rc4","rc4-encryption"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mauricelambert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-08T20:44:16.000Z","updated_at":"2024-08-02T14:51:30.000Z","dependencies_parsed_at":"2022-09-01T19:13:17.990Z","dependency_job_id":null,"html_url":"https://github.com/mauricelambert/RC4Encryption","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mauricelambert/RC4Encryption","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FRC4Encryption","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FRC4Encryption/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FRC4Encryption/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FRC4Encryption/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mauricelambert","download_url":"https://codeload.github.com/mauricelambert/RC4Encryption/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FRC4Encryption/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262862409,"owners_count":23376405,"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":["cipher","encryption","pypi-package","python3","rc4","rc4-encryption"],"created_at":"2024-11-14T15:17:34.599Z","updated_at":"2025-06-30T22:35:15.639Z","avatar_url":"https://github.com/mauricelambert.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![RC4Encryption logo](https://mauricelambert.github.io/info/python/security/RC4Encryption_small.png \"RC4Encryption logo\")\r\n\r\n# RC4Encryption\r\n\r\n## Description\r\n\r\nThis package implements the RC4 encryption.\r\n\r\n## Requirements\r\n\r\nThis package require:\r\n\r\n - python3\r\n - python3 Standard Library\r\n\r\n## Installation\r\n\r\n```bash\r\npip install RC4Encryption\r\n```\r\n\r\n## Usages\r\n\r\n### Recommended options\r\n\r\n```bash\r\nrc4 [key] -6 -o [secrets.cipher] -i [secrets.file]            # encryption\r\nrc4 [key] -n base64 -i [secrets.cipher] -o [decipher.file] -d # decryption\r\n```\r\n\r\n### Command line\r\n\r\n#### Module\r\n\r\n```bash\r\npython3 -m RC4Encryption rc4key -s secrets\r\n```\r\n\r\n#### Python executable\r\n\r\n```bash\r\npython3 RC4Encryption.pyz rc4key -s secrets\r\n```\r\n\r\n#### Command\r\n\r\n##### Basic\r\n\r\n```bash\r\nrc4 rc4key -s secrets                               # encrypt \"secrets\" with rc4key sha256 as key\r\n```\r\n\r\n##### Advanced\r\n\r\n```bash\r\nrc4 rc4key -s secrets                               # encrypt \"secrets\" with rc4key as key\r\necho secrets| rc4 rc4key --no-sha256 -i             # encrypt \"secrets\\n\" with sha256 of rc4key as key\r\nrc4 rc4key -i secrets.txt                           # encrypt secrets.txt file with rc4key as key\r\nrc4 rc4key -o encrypt.rc4 -s secrets                # encrypt \"secrets\" with rc4key as key and redirect the output to the encrypt.rc4 file\r\nrc4 rc4key -i encrypt.rc4 -d                        # decrypt encrypt.rc4 with rc4key as key\r\n\r\n## INPUT  ENCODING\r\n\r\nrc4 rc4key -n base64 -s c2VjcmV0cw==                # encrypt \"secrets\" with rc4key sha256 as key (\"c2VjcmV0cw==\" = base64(\"secrets\"))\r\n\r\n## OUTPUT ENCODING\r\n\r\nrc4 rc4key -s secrets -8                            # encrypt \"secrets\" with rc4key sha256 as key, base85-encoded output\r\nrc4 rc4key -s secrets -6                            # encrypt \"secrets\" with rc4key sha256 as key, base64-encoded output\r\nrc4 rc4key -s secrets -3                            # encrypt \"secrets\" with rc4key sha256 as key, base30-encoded output\r\nrc4 rc4key -s secrets -1                            # encrypt \"secrets\" with rc4key sha256 as key, base16-encoded output\r\nrc4 rc4key -s secrets -u                            # encrypt \"secrets\" with rc4key sha256 as key, uu-encoded output\r\n```\r\n\r\n### Python script\r\n\r\n```python\r\nfrom RC4Encryption import RC4Encryption\r\n\r\nrc4 = RC4Encryption(b'key')\r\nrc4.make_key()\r\ncipher = rc4.encrypt(b'secrets')\r\ncipher_continuation = rc4.encrypt(b'secrets')\r\n\r\n\r\nrc4.reset(b'key')\r\nrc4.make_key()\r\ndecipher = rc4.encrypt(cipher)\r\ndecipher_continuation = rc4.encrypt(cipher_continuation)\r\n```\r\n\r\n## Links\r\n\r\n - [Github Page](https://github.com/mauricelambert/RC4Encryption/)\r\n - [Documentation](https://mauricelambert.github.io/info/python/security/RC4Encryption.html)\r\n - [Pypi package](https://pypi.org/project/RC4Encryption/)\r\n - [Executable](https://mauricelambert.github.io/info/python/security/RC4Encryption.pyz)\r\n\r\n## Help\r\n\r\n```text\r\nusage: RC4.py [-h] (--input-file [INPUT_FILE] | --input-string INPUT_STRING) [--output-file OUTPUT_FILE]\r\n              [--base85 | --base64 | --base32 | --base16 | --output-encoding {base64,base85,base16,base32}]\r\n              [--input-encoding {base64,base85,base16,base32}] [--sha256]\r\n              key\r\n\r\nThis file performs RC4 encryption.\r\n\r\npositional arguments:\r\n  key                   Encryption key.\r\n\r\noptions:\r\n  -h, --help            show this help message and exit\r\n  --input-file [INPUT_FILE], --i-file [INPUT_FILE], -i [INPUT_FILE]\r\n                        The secrets file to be encrypted.\r\n  --input-string INPUT_STRING, --string INPUT_STRING, -s INPUT_STRING\r\n                        The string to be encrypted.\r\n  --output-file OUTPUT_FILE, --o-file OUTPUT_FILE, -o OUTPUT_FILE\r\n                        The output file.\r\n  --base85, --85, -8    Base85 encoding as output format\r\n  --base64, --64, -6    Base64 encoding as output format\r\n  --base32, --32, -3    Base32 encoding as output format\r\n  --base16, --16, -1    Base16 encoding as output format\r\n  --output-encoding {base64,base85,base16,base32}, --o-encoding {base64,base85,base16,base32}, -e {base64,base85,base16,base32}\r\n                        Output encoding.\r\n  --input-encoding {base64,base85,base16,base32}, --i-encoding {base64,base85,base16,base32}, -n {base64,base85,base16,base32}\r\n                        Input encoding.\r\n  --sha256              Use the sha256 of the key as the key.\r\n```\r\n\r\n## Licence\r\n\r\nLicensed under the [GPL, version 3](https://www.gnu.org/licenses/).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricelambert%2Frc4encryption","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmauricelambert%2Frc4encryption","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricelambert%2Frc4encryption/lists"}