Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Python implementation of RNCryptor

Project description

Actual PyPI version CI status

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.

Project details


Release history Release notifications

This version
History Node

3.2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
rncryptor-3.2.0-py2.py3-none-any.whl (4.8 kB) Copy SHA256 hash SHA256 Wheel 2.7 Jan 29, 2017
rncryptor-3.2.0.tar.gz (4.1 kB) Copy SHA256 hash SHA256 Source None Jan 29, 2017

Supported by

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