Cryption101 is a versatile Python script that combines multiple functionalities:
- Caesar Cipher for text encryption and decryption.
- Password Strength Checker to evaluate the strength of your passwords.
- XOR Image Encryption/Decryption to securely encrypt and decrypt image files.
- File Encryption/Decryption using symmetric key encryption.
Encrypt or decrypt text using the classic Caesar Cipher technique.
python3 cryption101.py caesar -e "Hello World" -s 3
Arguments
-e, --encrypt: Text to encrypt.
-d, --decrypt: Text to decrypt.
-s, --shift: Shift value (1 to 26).
Check the strength of a password and get recommendations to make it stronger.
python3 cryption101.py password -p "YourPassword123!"
Arguments
-p, --password: Password to check strength.
Encrypt or decrypt an image using XOR encryption.
python3 cryption101.py xor -i path/to/input_image.jpg -o path/to/output_image.jpg -k 123
Arguments
-i, --input: Path to the input image file.
-o, --output: Path to save the output image file.
-k, --key: Key for XOR encryption/decryption (0 to 255).
Encrypt or decrypt all files in the current directory using symmetric key encryption. File Encryption
Encrypt all files in the current directory except the script and key files.
python3 cryption101.py file-encrypt
Decrypt all files in the current directory using a provided key.
python3 cryption101.py file-decrypt -k "randsome"
Arguments
-k, --key: Key for decryption.
Clone the repository:
git clone https://github.com/MohakGupta2004/cryption101.git
Navigate to the project directory:
cd cryption101
Run the script with the desired functionality:
python3 cryption101.py -h
Encrypt the text "Hello World" with a shift of 3:
python3 cryption101.py caesar -e "Hello World" -s 3
Decrypt the text "Khoor Zruog" with a shift of 3:
python3 cryption101.py caesar -d "Khoor Zruog" -s 3
Check the strength of the password "YourPassword123!":
python3 cryption101.py password -p "YourPassword123!"
Encrypt an image with key 123:
python3 cryption101.py xor -i path/to/input_image.jpg -o path/to/output_image.jpg -k 123
Decrypt the image with key 123:
python3 cryption101.py xor -i path/to/output_image.jpg -o path/to/decrypted_image.jpg -k 123
Encrypt all files in the current directory:
python3 cryption101.py file-encrypt
Decrypt all files in the current directory with the key "randsome":
python3 cryption101.py file-decrypt -k "randsome"
Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.