Metadata-Version: 2.0
Name: rncryptor
Version: 3.2.0
Summary: Python implementation of RNCryptor
Home-page: https://github.com/RNCryptor/RNCryptor-python
Author: Yan Kalchevskiy
Author-email: yan.kalchevskiy@gmail.com
License: MIT
Keywords: RNCryptor cryptography
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Security :: Cryptography
Requires-Dist: pycrypto (>=2.5)

RNCryptor-python
================

.. image:: https://travis-ci.org/RNCryptor/RNCryptor-python.svg?branch=master
    :target: https://travis-ci.org/RNCryptor/RNCryptor-python
    :alt: CI status

Python implementation of `RNCryptor <https://github.com/RNCryptor/RNCryptor-Spec/blob/master/RNCryptor-Spec-v3.md>`_

Installation
------------

.. code-block:: bash

    $ pip install git+https://github.com/RNCryptor/RNCryptor-python.git#egg=rncryptor

Usage
-----

.. code-block:: python

    import rncryptor

    data = '...'
    password = '...'

    # rncryptor.RNCryptor's methods
    cryptor = rncryptor.RNCryptor()
    encrypted_data = cryptor.encrypt(data, password)
    decrypted_data = cryptor.decrypt(encrypted_data, password)
    assert data == decrypted_data

    # rncryptor's functions
    encrypted_data = rncryptor.encrypt(data, password)
    decrypted_data = rncryptor.decrypt(encrypted_data, password)
    assert data == decrypted_data

Testing
-------

.. code-block:: bash

    $ tox
    $ tox -e py27  # test using only Python2.7
    $ tox $(nproc)  # run tests using all processes

An actual command can be found in `tox.ini <tox.ini>`_, but basically it's a common ``py.test`` with a bunch of plugins.


