Simple symmetric encryption built on cryptography
Project description
raho
: Simple symmetric encryption built on cryptography
raho
is a simple wrapper library for the
cryptography module.
Installation
pip install raho
And in your Python file:
>>> import raho
Usage
With Fernets
>>> fernet = raho.generate_fernet()
>>> message = raho.encrypt('he is hiding behind the rock', fernet)
>>> message
'Z0FB...'
>>> raho.decrypt(message, fernet)
'he is hiding behind the rock'
With passwords
>>> message = raho.encrypt_with_password('they know water', 'dragon123')
>>> raho.decrypt_with_password(message, 'dragon123')
'they know water'
With key files
>>> fernet = raho.generate_key_file('key-file')
>>> message = raho.encrypt_with_key_file('falcon flies at dawn', 'key-file')
>>> raho.decrypt_with_key_file(message, 'key-file')
'falcon flies at dawn'
Command line
See raho --help
for command-line usage examples.
More information
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
raho-0.0.2.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file raho-0.0.2.tar.gz
.
File metadata
- Download URL: raho-0.0.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84be26f09ec610e772dc98c869de393dc903c9575eeb3be869fc7c03d3d3e22d |
|
MD5 | 4fc646e56c661197f317d7852a649eea |
|
BLAKE2b-256 | 9f4aacf02d8086617c1b95865a8ebf8a32a39113dead484813eb0fe6042eece5 |
File details
Details for the file raho-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: raho-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9c242798f6c758bce794e3cd356edb5e738b818d902e83a8597b98e33998111 |
|
MD5 | 03149b8e52e4a9d0f2fb72c7bd425848 |
|
BLAKE2b-256 | 8ae15096ab9c01a8ac0f583365e9def6a49ea3229ddedecb8899364acfe4453c |