Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dms-codes/kriptografi-affine
Affine Cipher Encryption This Python script performs Affine cipher encryption on a given plaintext message using user-defined values for 'a' and 'b'.
https://github.com/dms-codes/kriptografi-affine
affine affine-cipher python
Last synced: 2 days ago
JSON representation
Affine Cipher Encryption This Python script performs Affine cipher encryption on a given plaintext message using user-defined values for 'a' and 'b'.
- Host: GitHub
- URL: https://github.com/dms-codes/kriptografi-affine
- Owner: dms-codes
- Created: 2022-11-15T15:48:48.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-30T22:50:54.000Z (over 1 year ago)
- Last Synced: 2023-09-30T23:29:28.582Z (over 1 year ago)
- Topics: affine, affine-cipher, python
- Language: Python
- Homepage: https://github.com/dms-codes/kriptografi-affine
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Affine Cipher Encryption
This Python script performs Affine cipher encryption on a given plaintext message using user-defined values for 'a' and 'b'.
## Features
- Encrypts plaintext messages using the Affine cipher with user-defined values for 'a' and 'b'.
- Supports uppercase letters.
- Preserves spaces in the input message.## Usage
1. Modify the `plaintext`, `a`, and `b` variables with the message and encryption parameters you want to use.
2. Run the script by executing the following command in your terminal:
```bash
python your_script_name.py
```3. The script will perform the encryption and print the ciphertext.
## Example
Suppose you have the following lines of code in your script:
```python
plaintext = 'SELAMAT DATANG DI KELAS KRIPTOGRAFI'
a = 17
b = 3
```After running the script, you will see the following output:
```
TUSXSE UXSUSR US XUFVT LXWXSUSTR
```## License
This script is provided under the [MIT License](LICENSE).
```Replace `"your_script_name.py"` with the actual name of your script. Feel free to customize the README.md file to include additional information or usage examples as needed for your project.