{"id":20292525,"url":"https://github.com/mauricelambert/customcrypto","last_synced_at":"2025-07-04T06:06:53.243Z","repository":{"id":57417786,"uuid":"425990495","full_name":"mauricelambert/CustomCrypto","owner":"mauricelambert","description":"This package implements tools to build your custom cipher","archived":false,"fork":false,"pushed_at":"2021-11-09T07:28:07.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T05:13:39.527Z","etag":null,"topics":["cipher","cryptography","encryption","pypi-package","python3"],"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:53:53.000Z","updated_at":"2021-11-09T07:28:10.000Z","dependencies_parsed_at":"2022-08-31T14:21:10.537Z","dependency_job_id":null,"html_url":"https://github.com/mauricelambert/CustomCrypto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mauricelambert/CustomCrypto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FCustomCrypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FCustomCrypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FCustomCrypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FCustomCrypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mauricelambert","download_url":"https://codeload.github.com/mauricelambert/CustomCrypto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FCustomCrypto/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263457182,"owners_count":23469289,"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","cryptography","encryption","pypi-package","python3"],"created_at":"2024-11-14T15:17:38.994Z","updated_at":"2025-07-04T06:06:53.223Z","avatar_url":"https://github.com/mauricelambert.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![CustomCrypto logo](https://mauricelambert.github.io/info/python/security/CustomCrypto_small_background.png \"CustomCrypto logo\")\r\n\r\n# CustomCrypto\r\n\r\n## Description\r\n\r\nThis package implements tools to build your custom cipher.\r\n\r\n## Requirements\r\n\r\nThis package require :\r\n - python3\r\n - python3 Standard Library\r\n\r\n## Installation\r\n```bash\r\npip install CustomCrypto\r\n```\r\n\r\n## Usages\r\n\r\n### Python script\r\n\r\n```python\r\nfrom CustomCrypto import CustomCrypto, xor, viginere, decipher_viginere\r\nimport string\r\n\r\ncrypto = CustomCrypto(xor)\r\n\r\ncipher = crypto.dynamic_key_1(b'00', [ord('0')])\r\ndecipher = bytes(crypto.reverse_dynamic_key_1(cipher, [ord('0')]))\r\n\r\ncipher = CustomCrypto(viginere, string.ascii_uppercase, alphabet_length=26).dynamic_key_2('ACCA', ('C', 'A'))\r\ndecipher = CustomCrypto(decipher_viginere, string.ascii_uppercase, alphabet_length=26).dynamic_key_2('CCCC', ('C', 'A'))\r\n\r\ncrypto = CustomCrypto(None)\r\n\r\nshuffle_data = crypto.shuffle('ABCDEFGH', 4)\r\ndata = crypto.unshuffle(shuffle_data, 4)\r\n\r\nshuffle_data = crypto.reverse('ABCD')\r\ndata = crypto.reverse(shuffle_data)\r\n\r\nmodified_data = crypto.shift(b'\\xff\\x00\\xf0\\xa5\\xaa')\r\ndata = crypto.shift(modified_data)\r\n\r\nlines = crypto.group('0' * 40, '0')\r\nlines = \"\\n\".join(\" \".join(\"\".join(chars) for chars in words) for words in lines)\r\nprint(lines)\r\n```\r\n\r\n## Links\r\n\r\n - [Github Page](https://github.com/mauricelambert/CustomCrypto/)\r\n - [Documentation](https://mauricelambert.github.io/info/python/security/CustomCrypto.html)\r\n - [Pypi package](https://pypi.org/project/CustomCrypto/)\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%2Fcustomcrypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmauricelambert%2Fcustomcrypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricelambert%2Fcustomcrypto/lists"}