skip to navigation
skip to content

rncryptor 3.2.0

Python implementation of RNCryptor

Python implementation of RNCryptor

Installation

$ pip install rncryptor

Usage

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

$ 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, but basically it’s a common py.test with a bunch of plugins.

 
File Type Py Version Uploaded on Size
rncryptor-3.2.0-py2.py3-none-any.whl (md5) Python Wheel 2.7 2017-01-29 4KB
rncryptor-3.2.0.tar.gz (md5) Source 2017-01-29 3KB