Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.
/ clrypt Public archive

A tool to encrypt/decrypt files.

License

Notifications You must be signed in to change notification settings

color/clrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clrypt

A tool to encrypt/decrypt files.

Getting Started

  • Install clrypt
$ pip install git+https://github.com/color/clrypt.git@v0.2.1
  • Create a directory called encrypted in your root directory.

  • Set path to encrypted dir.

$ export ENCRYPTED_DIR=/path/to/encrypted
  • Set paths to cert and pk to use for encryption as environment variables.
$ export CLRYPT_CERT=/path/to/cert/file.crt
$ export CLRYPT_PK=/path/to/pk/file.pem
  • Write a encrypted file
$ import clrypt
$ file_to_encrypt = open('some_file.txt')
$ clrypt.write_file(file_to_encrypt, 'keys', 'database')
  • Dencrypted a encrypted file
$ import clrypt
$ clrypt.read_file('keys', 'database')