{"id":18550345,"url":"https://github.com/amaitou/affinecipher","last_synced_at":"2025-10-14T01:05:26.192Z","repository":{"id":112338219,"uuid":"370152818","full_name":"amaitou/AffineCipher","owner":"amaitou","description":"This tool is a versatile implementation of the Affine Cipher, a classical encryption algorithm that combines modular arithmetic and linear algebra. It enables users to encode and decode messages using a pair of keys, offering a straightforward and effective approach to securing information.","archived":false,"fork":false,"pushed_at":"2024-07-26T23:20:17.000Z","size":23,"stargazers_count":23,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T12:46:57.432Z","etag":null,"topics":["affine-cipher","cryptography","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/amaitou.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-23T20:38:50.000Z","updated_at":"2024-07-26T23:20:21.000Z","dependencies_parsed_at":"2024-07-27T00:29:14.475Z","dependency_job_id":null,"html_url":"https://github.com/amaitou/AffineCipher","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/amaitou%2FAffineCipher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaitou%2FAffineCipher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaitou%2FAffineCipher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaitou%2FAffineCipher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amaitou","download_url":"https://codeload.github.com/amaitou/AffineCipher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123473,"owners_count":21051479,"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":["affine-cipher","cryptography","python3"],"created_at":"2024-11-06T21:04:17.437Z","updated_at":"2025-10-14T01:05:21.156Z","avatar_url":"https://github.com/amaitou.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"------------------\n![Albert_Einstein_Head_H3000x1688](https://user-images.githubusercontent.com/49293816/188544854-5ad5a6a8-38df-4cc7-9840-f012a24bc445.jpg)\n\n------------------\n## What is Affine Cipher?\n\nas **Wikipedia** says: The affine cipher is a type of monoalphabetic substitution cipher, where each letter in an alphabet is mapped to its numeric equivalent, encrypted using a simple mathematical function, and converted back to a letter.\n* look at the entire article from here: https://en.wikipedia.org/wiki/Affine_cipher\n## Formula\n\n```\n  C = (a * P + b) mod 26\n  P = (a ^ -1 * (C - b)) mod 26\n```\n## Guide\n```\n ! Usage: python3 affinecipher.py \u003ctype\u003e \u003cstring\u003e \u003ca\u003e \u003cb\u003e\n  \n* type    : {e: encryption, d: decryption}\n* string  : the text you want to encrypt or decrypt\n* a       : the first operand of the key\n* b       : the second operand of the key\n```\n  \n## Contact Me\n\n* [Twitter][_1]\n\n[_1]: https://twitter.com/amait0u\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaitou%2Faffinecipher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famaitou%2Faffinecipher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaitou%2Faffinecipher/lists"}