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
Metadata
Release files for raho 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| raho-0.0.2.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| raho-0.0.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / raho-0.0.2.tar.gz
| Download URL | raho-0.0.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84be26f09ec610e772dc98c869de393dc903c9575eeb3be869fc7c03d3d3e22d
|
|
BLAKE2b-256 checksum How to use checksums |
9f4aacf02d8086617c1b95865a8ebf8a32a39113dead484813eb0fe6042eece5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / raho-0.0.2-py2.py3-none-any.whl
| Download URL | raho-0.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c9c242798f6c758bce794e3cd356edb5e738b818d902e83a8597b98e33998111
|
|
BLAKE2b-256 checksum How to use checksums |
8ae15096ab9c01a8ac0f583365e9def6a49ea3229ddedecb8899364acfe4453c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|