{"id":24360428,"url":"https://github.com/dms-codes/kriptografi-substitution","last_synced_at":"2026-05-21T03:31:38.733Z","repository":{"id":169618388,"uuid":"566367856","full_name":"dms-codes/kriptografi-substitution","owner":"dms-codes","description":"Simple Substitution Cipher This Python script demonstrates a simple substitution cipher. It allows you to encrypt and decrypt text using a custom cipher alphabet.","archived":false,"fork":false,"pushed_at":"2023-10-01T07:46:19.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-30T11:21:32.210Z","etag":null,"topics":["python","substitution-cipher"],"latest_commit_sha":null,"homepage":"https://github.com/dms-codes/kriptografi-substitution ","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/dms-codes.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":"2022-11-15T14:26:16.000Z","updated_at":"2023-10-01T07:47:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"c5fa7406-0fb3-48cc-b467-0fa7706b76d6","html_url":"https://github.com/dms-codes/kriptografi-substitution","commit_stats":null,"previous_names":["dms-codes/kriptografi-substitution"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dms-codes/kriptografi-substitution","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fkriptografi-substitution","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fkriptografi-substitution/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fkriptografi-substitution/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fkriptografi-substitution/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dms-codes","download_url":"https://codeload.github.com/dms-codes/kriptografi-substitution/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fkriptografi-substitution/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33287424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["python","substitution-cipher"],"created_at":"2025-01-18T21:19:51.722Z","updated_at":"2026-05-21T03:31:38.694Z","avatar_url":"https://github.com/dms-codes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Substitution Cipher\n\nThis Python script demonstrates a simple substitution cipher. It allows you to encrypt and decrypt text using a custom cipher alphabet.\n\n## Overview\n\nA substitution cipher is a method of encrypting plaintext by replacing each letter with another letter. In this script, you can specify a custom cipher alphabet to perform both encryption and decryption.\n\n- The `plaintext` variable contains the text that you want to encrypt.\n- The `cipheralphabet` variable contains the custom substitution alphabet.\n- The `plainalphabet` variable contains the standard uppercase alphabet.\n\nThe script provides two main functions:\n\n- `encrypt(plaintext, cipheralphabet)`: Encrypts the input `plaintext` using the specified `cipheralphabet` and returns the ciphertext.\n- `decrypt(ciphertext, cipheralphabet)`: Decrypts the input `ciphertext` using the specified `cipheralphabet` and returns the original plaintext.\n\n## Usage\n\n1. Customize the `plaintext` and `cipheralphabet` variables in the script to set your desired input text and custom substitution alphabet.\n\n2. Run the script by executing the following command in your terminal:\n\n   ```bash\n   python your_script_name.py\n   ```\n\n3. The script will perform the encryption and decryption using the specified inputs and print the results.\n\n4. You can modify the `plaintext` and `cipheralphabet` variables in the script to test different inputs and substitution alphabets.\n\n## Example\n\nSuppose you have configured the script with the following settings:\n\n- `plaintext = 'SELAMAT DATANG DI KELAS KRIPTOGRAFI'`\n- `cipheralphabet = 'QAMOCDBHRUWLKJNVTZFISPEGYX'`\n\nAfter running the script, you will see the ciphertext and the decrypted plaintext as output.\n\n## Security Note\n\nThis is a simple example of a substitution cipher and should not be used for secure encryption. In practice, more complex encryption algorithms and key management are required for secure communication.\n\n## License\n\nThis script is provided under the [MIT License](LICENSE).\n```\n\nReplace `\"your_script_name.py\"` with the actual name of your script. Customize the README.md file further if needed to include additional information or usage examples for your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdms-codes%2Fkriptografi-substitution","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdms-codes%2Fkriptografi-substitution","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdms-codes%2Fkriptografi-substitution/lists"}