Socket
Socket
Sign inDemoInstall

rncryptor

Package Overview
Dependencies
1
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rncryptor

Python implementation of RNCryptor


Maintainers
1

Readme

RNCryptor-python

.. image:: https://img.shields.io/pypi/v/rncryptor.svg :alt: Actual PyPI version :target: https://pypi.python.org/pypi/rncryptor/

.. 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 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.

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc