Python implementation of RNCryptor
Project description
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rncryptor-3.2.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for rncryptor-3.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3b521d22953bffc4f125faf53f4c9c2a41c8186e0b0e331314abe455be92c48 |
|
MD5 | 50c8cba8ec7eedb8b5e2958ad01500ce |
|
BLAKE2b-256 | a0968bd54e292cf548c017cbd85dbfbd703ce5329b1086cebd124d5d4cf7f7a9 |