Skip to content

Morn98/encryptio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encryptio

Encrypt strings, decrypt files and determine encryption algorithm of encrypted files.

Prerequisites

install required python in version 3.11

apt install python3.11

install required libraries via requirements

pip install -r requirements.txt

This will download and install the cryptography and cryptodome libraries.

Usage of encryptio.py

encryptio.py use a CLI interface(using argparse):

encryption

python3 encryptio.py encryption [-h] {AES,DES,3DES,IDEA,BLOWFISH} cryptoKey {CBC,CFB,CTR,ECB,OFB} cryptoData

Where

  • {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

decryption

python3 encryptio.py decryption [-h] {AES,DES,3DES,IDEA,BLOWFISH} cryptoKey {CBC,CFB,CTR,ECB,OFB} cryptoDataFile

Where

  • {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

Usage of determiner.py

determiner.py use a CLI interface(using argparse):

determining

python3 determiner.py [-h] -f cryptoDataFile -k cryptoKey

Where

  • cryptoDataFile - file to analyze
  • cryptoKey - key to analyze

Examples

encrypt

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.enc

decryption

python3 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 encrypted

determining

python3 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, IDEA

Contributing

Feel free to contribute to this project.

Authors

  • Moritz Nentwig - initial idea and work - Morn98
  • Laura Tzigiannis - initial idea and work - tzigiannis

License

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

About

Encrypt strings, decrypt files and determine encryption algorithm of encrypted files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%