Metadata-Version: 2.1
Name: raho
Version: 0.0.2
Summary: Simple symmetric encryption built on cryptography
Home-page: https://github.com/abhayagiri/raho
Author: Abhayagiri Dev Monk
Author-email: devmonk@abhayagiri.org
License: UNKNOWN
Keywords: cryptography fernet
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
Description-Content-Type: text/markdown
Requires-Dist: cryptography
Provides-Extra: test
Requires-Dist: tox ; extra == 'test'

# `raho`: Simple symmetric encryption built on cryptography

[![Build Status](https://travis-ci.org/abhayagiri/raho.svg?branch=master)](https://travis-ci.org/abhayagiri/raho)
[![codecov](https://codecov.io/gh/abhayagiri/raho/branch/master/graph/badge.svg)](https://codecov.io/gh/abhayagiri/raho)
[![PyPI version](https://badge.fury.io/py/raho.svg)](https://pypi.org/project/raho/)

`raho` is a simple wrapper library for the
[cryptography](https://cryptography.io/) module.

## Installation

```sh
pip install raho
```

And in your Python file:

```python
>>> import raho

```

## Usage

### With Fernets

```python
>>> 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

```python
>>> message = raho.encrypt_with_password('they know water', 'dragon123')
>>> raho.decrypt_with_password(message, 'dragon123')
'they know water'

```

### With key files

```python
>>> 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

- [Fernets and `cryptography`](https://cryptography.io/)
- [Development Documentation](https://github.com/abhayagiri/raho/blob/master/DEVELOPMENT.md)


