Encrypt strings, decrypt files and determine encryption algorithm of encrypted files.
install required python in version 3.11
apt install python3.11install required libraries via requirements
pip install -r requirements.txtThis will download and install the cryptography and cryptodome libraries.
encryptio.py use a CLI interface(using argparse):
python3 encryptio.py encryption [-h] {AES,DES,3DES,IDEA,BLOWFISH} cryptoKey {CBC,CFB,CTR,ECB,OFB} cryptoDataWhere
- {AES,DES,3DES,IDEA,BLOWFISH} - algorithm to encrypt your string with
- cryptoKey - key to encrypt your string with
- {CBC,CFB,CTR,ECB,OFB} - mode of encryption
- cryptoData - string to encrypt
python3 encryptio.py decryption [-h] {AES,DES,3DES,IDEA,BLOWFISH} cryptoKey {CBC,CFB,CTR,ECB,OFB} cryptoDataFileWhere
- {AES,DES,3DES,IDEA,BLOWFISH} - algorithm to decrypt your file with
- cryptoKey - key to decrypt your file with
- {CBC,CFB,CTR,ECB,OFB} - mode of encryption
- cryptoDataFile - file to decrypt
determiner.py use a CLI interface(using argparse):
python3 determiner.py [-h] -f cryptoDataFile -k cryptoKeyWhere
- cryptoDataFile - file to analyze
- cryptoKey - key to analyze
python3 encryptio.py encryption AES 'PsaDqdsYnlAQjRXm' CBC 'This string should be encrypted'
encryptio.py - Published by Laura Tzigiannis and Moritz Nentwig
---------------------------------------------------------------
Encryption successfull: File created: encryptio_20_56_06.encpython3 encryptio.py decryption AES 'PsaDqdsYnlAQjRXm' CBC encryptio_20_56_06.enc
encryptio.py - Published by Laura Tzigiannis and Moritz Nentwig
---------------------------------------------------------------
Decryption successfull: This string should be encryptedpython3 determiner.py -f encryptio_20_56_06.enc -k 'PsaDqdsYnlAQjRXm'
determiner.py - Published by Laura Tzigiannis and Moritz Nentwig
---------------------------------------------------------------
File extension: Unrecognized file extension
File header: AES
Block size: AES, DES, 3DES, IDEA, Blowfish
Key length: AES, 3DES, Blowfish, IDEAFeel free to contribute to this project.
- Moritz Nentwig - initial idea and work - Morn98
- Laura Tzigiannis - initial idea and work - tzigiannis
This project is licensed under the MIT License - see the LICENSE file for details.