Coder Social home page Coder Social logo

deo7 / filencrypt Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 767 KB

File encryption and decryption using AES-256 CBC Mode

License: GNU General Public License v3.0

Python 100.00%
python cryptography encryption file-encryption file-encryption-python aes aes-encryption aes-file-encryptor aes256 aes256-cbc

filencrypt's Introduction

Filencrypt v4.0 💖

Filencrypt is a cryptography project started in 2021 that encrypts and decrypts your files of all extensions (txt, js, png...) in AES-256 CBC Mode. Filencrypt 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/deo7/Filencrypt.git
cd Filencrypt
pip install -r requirements.txt

Run

Windows :

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

Linux :

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

Demonstartion 📸

demo1

As you can see above, I encrypt a 'test.txt' file with the password 'Filencrypt'. Thus, the original content of this file become encrypted and unreadable.
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 :

demo2

Finally, I decrypt my file with the password AND initialization vector (see below).

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

demo3

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 📚


filencrypt's People

Contributors

deo7 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

slayerrr12

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.