Coder Social home page Coder Social logo

martian58 / enc Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 26 KB

Encrypt your files and directories with enc

License: GNU General Public License v3.0

Python 100.00%
data-encryption directory-encryption encryption encryption-decryption file-encrypter file-encryption

enc's Introduction

Enc

Enc is a command-line tool for encrypting and decrypting files and folders using AES encryption. Encrypted files can only be decrypted with the key specified by the user.

Features

  • Encrypt files and folders
  • Decrypt encrypted files and folders with the user-specified key

Installation

Clone the repository to your local machine:

git clone https://github.com/martian58/enc.git
cd enc 
chmod +x install_requirements
chmod +x enc
./install_requirements

For global usage

sudo cp enc /bin

Usage

To encrypt a file:

enc --encrypt f <file_path>

To encrypt a folder:

enc --encrypt F <folder_path>

To decrypt an encrypted file:

enc --decrypt f <file_path>

To decrypt an encrypted folder:

enc --decrypt F <folder_path>

You will be prompted to enter the encryption/decryption key, which must be at least 16 characters long.

Example

Encrypt a file:

enc --encrypt f secret.txt

Decrypt the encrypted file:

enc --decrypt f secret.txt

Encrypt a folder:

enc --encrypt F secret_folder

Decrypt the encrypted folder:

enc --decrypt F secret_folder

Note

Make sure to keep your encryption key secure. Once a file or folder is encrypted, it can only be decrypted with the correct key.

License

This project is licensed under the terms of the GNU General Public License (GPL) version 3. See the LICENSE file for details.

enc's People

Contributors

martian58 avatar

Stargazers

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