Coder Social home page Coder Social logo

ezhil56x / file-encryption-cli Goto Github PK

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

File Encryption is command-line tool used to encrypt and decrypt files using AES and RSA encryption algorithms

License: MIT License

Python 100.00%
cli cli-tools command-line-tool encryption-decryption file-encryption file-encryption-python python-encryption

file-encryption-cli's Introduction

File Encryption CLI

Description

File Encryption is command-line tool used to encrypt and decrypt files using AES and RSA encryption algorithms. It is written in Python and uses the PyCryptoDome library.

Requirements

  • Python 3.6 or above
  • PyCryptoDome library

Installation

  1. Install pycryptodome library
pip install pycryptodome
  1. Clone the repository
git clone https://github.com/ezhil56x/file-encryption-cli.git
  1. Go to file-encryption-cli directory
cd file-encryption-cli
  1. Take a look at the help menu to see the usage of the tool
python file_encrypt.py --help
python file_decrypt.py --help

Usage

AES Encryption

Encrypting a File

To encrypt a file, using AES encryption, use the following command

python file_encrypt.py --file <file> --algorithm AES --key <text>

Decrypting a File

To decrypt a file, using AES encryption, use the following command

python file_decrypt.py --file <file> --algorithm AES --key <text>

RSA Encryption

For RSA encryption, you need to generate public and private keys. You can use the key_generator.py script to generate the keys. And the keys will be stored in public.pem and private.pem files. You should move these files to the same directory as the file_encrypt.py and file_decrypt.py scripts.

Encrypting a File

To encrypt a file, using RSA encryption, use the following command

python file_encrypt.py --file <file> --algorithm RSA --key public.pem

Decrypting a File

To decrypt a file, using RSA encryption, use the following command

python file_decrypt.py --file <file> --algorithm RSA --key private.pem

Generating public and private keys

To generate public and private keys, go to RSA folder and run the following command

python key_generator.py

file-encryption-cli's People

Contributors

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