{"id":16973573,"url":"https://github.com/carloocchiena/xor_cipher","last_synced_at":"2025-03-21T20:26:29.283Z","repository":{"id":109540226,"uuid":"402380525","full_name":"carloocchiena/xor_cipher","owner":"carloocchiena","description":"Simple function to implement XOR Encryption ","archived":false,"fork":false,"pushed_at":"2021-09-02T10:45:37.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-26T15:15:19.805Z","etag":null,"topics":["algorithm","encryption","xor-cipher"],"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/carloocchiena.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-09-02T10:32:03.000Z","updated_at":"2021-10-27T14:27:14.000Z","dependencies_parsed_at":"2023-03-22T03:48:31.940Z","dependency_job_id":null,"html_url":"https://github.com/carloocchiena/xor_cipher","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"a5883d080541be2962adc064f8b60e17d962b1ff"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloocchiena%2Fxor_cipher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloocchiena%2Fxor_cipher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloocchiena%2Fxor_cipher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloocchiena%2Fxor_cipher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carloocchiena","download_url":"https://codeload.github.com/carloocchiena/xor_cipher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244862917,"owners_count":20522892,"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":["algorithm","encryption","xor-cipher"],"created_at":"2024-10-14T01:02:22.849Z","updated_at":"2025-03-21T20:26:29.261Z","avatar_url":"https://github.com/carloocchiena.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xor_cipher\n\nThe XOR Encryption algorithm is a very effective yet easy to implement method of symmetric encryption. Due to its effectiveness and simplicity, the XOR Encryption is an extremely common component used in more complex encryption algorithms used nowadays.\n\nIt operates according to the principles:\n\nA = A, A A = 0, A B = B A, (A B) C = A (B C), (B A) A = B = B, where\ndenotes the exclusive disjunction (XOR) operation.\nThis operation is sometimes called modulus 2 addition (or subtraction, which is\nidentical).\nWith this logic, a string of text can be encrypted by\napplying the bitwise XOR operator to every character using a given key.\nTo decrypt the output, merely reapplying the XOR function with the key\nwill remove the cipher.\n\nText Credits:\n\n\u003ca href =\"https://en.wikipedia.org/wiki/XOR_cipher\"\u003eWikipedia\u003c/a\u003e\u003cbr\u003e\n\u003ca href =\"https://www.101computing.net/xor-encryption-algorithm/\"\u003e101 Computing\u003c/a\u003e\n\n\n### Usage:\n\n\u003ci\u003e\nword = cipher(\"banana\")\u003cbr\u003e\nprint (word)\u003cbr\u003e\n\u0002\u0002\u003cbr\u003e\u003cbr\u003e\n\ncipher(word)\u003cbr\u003e\n'banana'\n\u003c/i\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarloocchiena%2Fxor_cipher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarloocchiena%2Fxor_cipher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarloocchiena%2Fxor_cipher/lists"}