Skip to content

Python module for simple symmetric encryption built on cryptography

License

Notifications You must be signed in to change notification settings

abhayagiri/raho

Repository files navigation

raho: Simple symmetric encryption

Build Status Code Coverage Support Python Versions Latest Version

raho is a simplified 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

About

Python module for simple symmetric encryption built on cryptography

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages