Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for raho, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size raho-0.0.2-py2.py3-none-any.whl (4.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size raho-0.0.2.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page