Giter Site home page Giter Site logo

onnivirtanen / python-file-encryption-tool Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 573 KB

CLI based encryption and decryption tool. AES-256.

License: MIT License

Python 100.00%
aes256 cryptography encryption-decryption python symmetric-encryption nonce tag

python-file-encryption-tool's Introduction

The program is capable of both file encryption and file decryption and is accessed through a command line interface.
This has the support for every filetype since the bits of the file are encrypted. For example you could encrypt a video, text or an image file.

The program uses Crypto.Cipher library.

Pycryptodome is needed in order to run the program. Do the following command in terminal.
pip install pycryptodome

To encrypt the file "hello.txt" in your current directory, use the following commands:

  1. run the program.
    $ python3 main.py

  2. the program asks whether to encrypt or decrypt.
    $ E

  3. choose the file name
    $ hello.txt

  4. Do you want the key saved to a txt file in your current directory.
    $ Y

  5. File named "enc_hello.txt" is in your current directory.\

image


to decrypt a file "enc_hello.txt" in your current directory.\

  1. run the program
    $ python3 main.py

  2. the program asks whether to encrypt or decrypt.
    $ D

  3. choose the file name.
    $ enc_hello.txt

  4. Input key: (use your own key).
    $ b779eaa0d589ff1572f51560e0365180

  5. File named "dec_hello.txt" is in your current directory.\

image

python-file-encryption-tool's People

Contributors

onnivirtanen avatar

Watchers

 avatar

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.