Skip to content

Cryptic secures files of any type, like txt, js, and png, using AES-256 CBC mode encryption. It encrypts and decrypts with a user-chosen password and a program-generated IV, ensuring strong protection against unauthorized access.

Notifications You must be signed in to change notification settings

vishnu-git1524/Cryptic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Cryptic v1.0

Cryptic is a cryptography project that encrypts and decrypts your files of all extensions (txt, js, png...) in AES-256 CBC Mode. Cryptic works with a password chosen by the user and with an initialization vector (IV) generated by the program.

Use 💻

Installation

git clone https://github.com/vishnu-git1524/Cryptic.git
cd Cryptic
pip install -r requirements.txt

Run

Windows :

python Cryptic.py [-h] [-e] [-d] [-i] [-c]

Linux :

python3 Cryptic.py [-h] [-e] [-d] [-i] [-c]

The program creates a file 'AES_IV.txt' containing the initialization vector (IV) used for the AES encryption of THIS file (and only this file, a file encryption -> a new IV generated). The IV is a 128 byte block uses by AES-256 CBC Mode for encryption.
AES_IV.txt file :

  • WARNING : If you decrypt your file with an incorrect password / IV, you will get errors and incorrect decryption.

To conclude, here is a table that resume the encryption and the decryption of 'test.txt' :

Original file content Encrypted file content (with my password and my IV) Decrypted file content
Hello world ! ßCå2µ�Ä£Ë�ÅPð Hello world !

Other

About

Cryptic secures files of any type, like txt, js, and png, using AES-256 CBC mode encryption. It encrypts and decrypts with a user-chosen password and a program-generated IV, ensuring strong protection against unauthorized access.

Topics

Resources

Stars

Watchers

Forks

Languages