Skip to main content

Simple symmetric encryption built on cryptography

Project description

raho: Simple symmetric encryption built on cryptography

Build Status codecov PyPI version

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


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)

Uploaded Source

Built Distribution

raho-0.0.2-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2 Python 3

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

Hashes for raho-0.0.2.tar.gz
Algorithm Hash digest
SHA256 84be26f09ec610e772dc98c869de393dc903c9575eeb3be869fc7c03d3d3e22d
MD5 4fc646e56c661197f317d7852a649eea
BLAKE2b-256 9f4aacf02d8086617c1b95865a8ebf8a32a39113dead484813eb0fe6042eece5

See more details on using hashes here.

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

Hashes for raho-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c9c242798f6c758bce794e3cd356edb5e738b818d902e83a8597b98e33998111
MD5 03149b8e52e4a9d0f2fb72c7bd425848
BLAKE2b-256 8ae15096ab9c01a8ac0f583365e9def6a49ea3229ddedecb8899364acfe4453c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page