Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

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')