Coder Social home page Coder Social logo

lpcodes / pycryptobox Goto Github PK

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

pyCryptobox is a Python package that provides a simple way to encrypt and decrypt files and directories using the AES encryption algorithm.

Home Page: https://pypi.org/project/pycryptobox/

Python 100.00%
decryption encryption file-security python pythonpackage file showcase

pycryptobox's Introduction

PyPI version DownloadsPublish Package

pyCryptobox

pyCryptoBox is a Python package that allows you to encrypt and decrypt files and folders using the Fernet symmetric encryption algorithm.

Installation

Use the package manager pip to install foobar.

pip install pycryptobox

Usage

Encryption

To encrypt a single file, use the encrypt_file() function:

from pycryptobox import encrypt_file

encrypt_file('/path/to/file')

To encrypt all files in a directory, use the encrypt_dir() function

from pycryptobox import encrypt_files_in_directory

encrypt_files_in_directory('/path/to/directory')

Decryption

To decrypt a single file, use the decrypt_file() function:

from pycryptobox import decrypt_file

file_path = "/path/to/file.txt.locked"
decrypt_file(file_path)

To decrypt all files in a directory, use the decrypt_dir() function:

from pycryptobox import decrypt_files_in_directory

dir_path = "/path/to/directory"
decrypt_files_in_directory(dir_path)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

pycryptobox's People

Contributors

lpcodes avatar

Stargazers

 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.