Skip to main content

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


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.3.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

rncryptor-3.3.0-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file rncryptor-3.3.0.tar.gz.

File metadata

  • Download URL: rncryptor-3.3.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.2+

File hashes

Hashes for rncryptor-3.3.0.tar.gz
Algorithm Hash digest
SHA256 efdd61d56627e645dcbb1b9cfe22806decf676c0089b6f993f280de82d66e70e
MD5 356d34f44b0431c5890cee75a90d988b
BLAKE2b-256 0ef0a6b66f0a13bf622231613023fd4682a6abf480fde48c058c7b218d9b635a

See more details on using hashes here.

File details

Details for the file rncryptor-3.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: rncryptor-3.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.2+

File hashes

Hashes for rncryptor-3.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ba932299aee25524537a32112cba8787965f8de6e46550684b71a3c1255b0e62
MD5 c08155afb8b74817ae51a18a02d59f80
BLAKE2b-256 03570734b54bd4a48df3dbd3aa0ac86fd24296bc22e3e9aa90961eab39fb223d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page