This Python script performs Affine cipher encryption on a given plaintext message using user-defined values for 'a' and 'b'.
- Encrypts plaintext messages using the Affine cipher with user-defined values for 'a' and 'b'.
- Supports uppercase letters.
- Preserves spaces in the input message.
-
Modify the
plaintext
,a
, andb
variables with the message and encryption parameters you want to use. -
Run the script by executing the following command in your terminal:
python your_script_name.py
- The script will perform the encryption and print the ciphertext.
Suppose you have the following lines of code in your script:
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
This script is provided under the MIT 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.