Utility tool to encrypt data using AWS KMS and store it in preferred backend.
Project description
aws-ket
Utility tool to encrypt data using AWS KMS and store it in preferred backend.
Overview
AWS-KET (AWS KMS Encryption Tool) uses AWS KMS Key to encrypt and decrypt files/contents based on user provided kms keys and push them to a datastore backend (S3, RDS or DynamoDB).
Setup
This application will only work if you have AWS account with full privileges on KMS and S3 services in AWS. You should also have aws cli tool installed.
Note: Currently this tool only uses AWS region us-east-2 for usage of kms and s3.
Initaliztion of app
cd src
python init.py
Encrypt text/file
python app.py --text <TEXT_TO_ENCRYPT> --save <FILE_NAME_IN_S3>
python app.py --file <PATH_OF_FILE_TO_ENCRYPT> --save <FILE_NAME_IN_S3>
Decrypt text/file from S3
This will save with same name as remote
python app.py --decrypt <FILE_NAME_IN_S3>
OR
To specify name for saved file
python app.py --decrypt <FILE_NAME_IN_S3> --save <FILE_NAME_TO_SAVE_AS_IN_LOCAL>
Cleanup
To cleanup your S3 bucket and start over
python cleanup.py
Details
This project uses Makefile as a command registry, with the following commands:
make: list available commandsmake develop: install and build this library and its dependencies usingpipmake lint: perform lint usingblackmake scan: run static analysis on code usingflake8make test: run automated tests withpytestmake coverage: run automated tests withpytestand collect coverage information
coverage output can also be found in html format in htmlcover directory.
Example
First download the source code
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file aws-ket-0.1.3.tar.gz.
File metadata
- Download URL: aws-ket-0.1.3.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fea2ea84e3961fa8e2796086f267b6be9a4f2ca763f1938b21aaa9fb5b99b7ff
|
|
| MD5 |
cd21f6202efd4ef1582eef06c0073b84
|
|
| BLAKE2b-256 |
0954784e7cbd9ae6a0ba46968443db1ad1ad027d0b6ad70dadf259e3b253feb5
|