{"id":24680543,"url":"https://github.com/zvxvx/crypt","last_synced_at":"2025-09-06T16:39:42.915Z","repository":{"id":250225936,"uuid":"833444828","full_name":"zvxvx/crypt","owner":"zvxvx","description":"Command line application written in python to encrypt and decrypt messages with different techniques.","archived":false,"fork":false,"pushed_at":"2024-08-09T20:51:50.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T19:45:15.877Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zvxvx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-07-25T04:30:03.000Z","updated_at":"2024-08-09T20:51:52.000Z","dependencies_parsed_at":"2024-08-09T21:51:56.317Z","dependency_job_id":null,"html_url":"https://github.com/zvxvx/crypt","commit_stats":null,"previous_names":["zvxvx/encryption_cla","zvxvx/crypt","v-9x/crypt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zvxvx/crypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvxvx%2Fcrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvxvx%2Fcrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvxvx%2Fcrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvxvx%2Fcrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zvxvx","download_url":"https://codeload.github.com/zvxvx/crypt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvxvx%2Fcrypt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273933067,"owners_count":25193599,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-01-26T14:13:45.490Z","updated_at":"2025-09-06T16:39:42.852Z","avatar_url":"https://github.com/zvxvx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![crypt](./crypt.png)\n\nCrypt includes traditional ciphers such as the Caesar Cipher, Autokey Cipher, and Railfence Cipher, as well as modern ciphers like AES, DES, and the asymmetrical cipher RSA.\n\n## How to:\n\n#### Clone this repo.\n\n#### Install pycryptodome if not installed already.\n\n##### Note: $ is to denote terminal commands. Do not include it as part of the command.\n\n```sh\n$ pip install pycryptodome\n```\n\n- Python 3.x\n\n```sh\n$ pip3 install pycryptodome\n```\n\n#### Run the application.\n\n```sh\n$ python main.py\n```\n\n- Python 3.x\n\n```sh\n$ python3 main.py\n```\n\n#### Follow the instructions given in the command-line application.\n\n##### Note: RSA will output keys and encrypted data to the subdirectory /rsa\n\n# Symmetric Encryption\n\n## Traditional Ciphers\n\n### Caesar Cipher\n\nThe Caesar Cipher is a substitution cipher where each letter in the plaintext is shifted a certain number of places down or up the alphabet.\n\n#### Encryption:\n\nEach letter in the plaintext is shifted by a fixed number, known as the key. For example, with a key of 3, 'A' would be encrypted to 'D', 'B' to 'E', and so on.\n\n#### Decryption:\n\nEach letter in the ciphertext is shifted back by the same fixed number.\n\n##### Example:\n\n- Plaintext: HELLO\n- Key: 3\n- Ciphertext: KHOOR\n\n### Autokey Cipher\n\nThe Autokey Cipher is a polyalphabetic substitution cipher that uses a keyword followed by the plaintext itself to create the key.\n\n#### Encryption:\n\nA keyword is chosen and appended to the plaintext (after removing the keyword length) to create a running key. Each letter of the plaintext is shifted by the corresponding letter of the running key, where 'A' represents a shift of 0, 'B' a shift of 1, and so on.\n\n#### Decryption:\n\nThe keyword is used to decipher the first part of the message. The plaintext itself is then used to decipher the remaining part.\n\n##### Example:\n\n- Plaintext: HELLO\n- Keyword: KEY\n- Ciphertext: RIJSS\n\n### Railfence Cipher\n\nThe Railfence Cipher is a transposition cipher that arranges the plaintext in a zigzag pattern across multiple \"rails\" and then reads it off row by row.\n\n#### Encryption:\n\nThe plaintext is written in a zigzag pattern across a fixed number of rails. The ciphertext is obtained by reading the pattern row by row.\n\n#### Decryption:\n\nThe ciphertext is written in the zigzag pattern and read off in the original order.\n\n##### Example:\n\n- Plaintext: HELLO WORLD\n- Number of Rails: 3\n- Ciphertext: HOREL OLLWD\n\n## Modern Ciphers\n\n### AES (Advanced Encryption Standard)\n\nAES is a symmetric key encryption standard adopted by the U.S. government. It supports key sizes of 128, 192, and 256 bits and operates on 128-bit blocks.\n\n#### Encryption:\n\nThe plaintext is divided into 128-bit blocks. Each block undergoes multiple rounds of substitution, permutation, mixing, and key addition.\n\n#### Decryption:\n\nThe process is reversed using the same key to retrieve the original plaintext.\n\n#### Key Features:\n\n- Strong security\n- Widely used in various applications\n\n### DES (Data Encryption Standard)\n\nDES is a symmetric key encryption algorithm that uses a 56-bit key and operates on 64-bit blocks.\n\n#### Encryption:\n\nThe plaintext is divided into 64-bit blocks. Each block undergoes 16 rounds of permutation and substitution based on the key.\n\n#### Decryption:\n\nThe process is reversed using the same key to retrieve the original plaintext.\n\n#### Key Features:\n\n- Less secure by modern standards due to short key length\n- Superseded by AES\n\n# Asymmetric Encryption\n\n## RSA (Rivest–Shamir–Adleman)\n\nRSA is an asymmetric key encryption algorithm that uses a pair of keys: a public key for encryption and a private key for decryption.\n\n#### Encryption:\n\nThe plaintext is encrypted using the recipient's public key. Only the recipient can decrypt the ciphertext using their private key.\n\n#### Decryption:\n\nThe ciphertext is decrypted using the recipient's private key.\n\n#### Key Features:\n\n- Based on the mathematical difficulty of factoring large prime numbers\n- Widely used for secure data transmission\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzvxvx%2Fcrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzvxvx%2Fcrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzvxvx%2Fcrypt/lists"}