Skip to content

Affine Cipher Encryption This Python script performs Affine cipher encryption on a given plaintext message using user-defined values for 'a' and 'b'.

Notifications You must be signed in to change notification settings

dms-codes/kriptografi-affine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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:

python your_script_name.py
  1. The script will perform the encryption and print the ciphertext.

Example

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

License

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.

About

Affine Cipher Encryption This Python script performs Affine cipher encryption on a given plaintext message using user-defined values for 'a' and 'b'.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages