Skip to content

Using Python I have created an algorithm to encrypt a string of plaintext. You can them decrypt the given ciphertext , and should get the original plaintext!

Notifications You must be signed in to change notification settings

codes-elle/Encryption-and-Decryption-Algorithm-in-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Encryption and Decryption Algorithm in Python

This repository contains a Python script that demonstrates a simple encryption and decryption algorithm using a shuffled character set.

Features

  • Encrypts a given plaintext message.
  • Decrypts an encrypted message back to the original plaintext.

Requirements

  • Python 3.x

Usage

  1. Clone the repository:

    git clone https://github.com/codes-elle/Encryption-and-Decryption-Algorithm-in-Python.git
  2. Navigate to the project directory:

    cd Encryption-and-Decryption-Algorithm-in-Python
  3. Run the script:

    python "Encryption Algorithm in Python.py"
  4. Encryption:

    • Enter the plaintext message when prompted.
    • The script will output the original and encrypted messages.
  5. Decryption:

    • Enter the encrypted message when prompted.
    • The script will output the encrypted and original messages.

How It Works

  1. Character Set:

    • The script uses a combination of ASCII letters, digits, punctuation, and space.
    • The character set is shuffled to create a key for encryption and decryption.
  2. Encryption:

    • Each character in the plaintext is replaced with the corresponding character from the shuffled key.
  3. Decryption:

    • Each character in the encrypted message is replaced with the corresponding character from the original character set.

Example

Enter message you want to encrypt: hello
original message: hello
encrypted message: $m88&

Enter message you want to decrypt: $m88&
encrypted message: $m88&
original message: hello

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributions

Contributions are welcome! Feel free to open an issue or submit a pull request.

Contact

For any questions or suggestions, please contact the repository owner.


Check out the code here.

🔗 Links

portfolio. linkedin medium

About

Using Python I have created an algorithm to encrypt a string of plaintext. You can them decrypt the given ciphertext , and should get the original plaintext!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages