.. image:: https://travis-ci.org/keybase/python-triplesec.png :alt: Build Status :target: https://travis-ci.org/keybase/python-triplesec
.. image:: https://coveralls.io/repos/keybase/python-triplesec/badge.png :alt: Coverage Status :target: https://coveralls.io/r/keybase/python-triplesec
A Python port of the TripleSec library. See also the JS implementation.
Compatible with Python 2.7 and 3.6+.
pip install TripleSec
Note: You may get an OpenSSL error while installing the scrypt dependency on older operating systems. On Ubuntu/Debian, run ::
On OS X, follow the instructions at https://github.com/ethereum/pyethapp/issues/209#issuecomment-308466232.
triplesec.TripleSec(key=None) object, with or without a key (if omitted it will have to be specified at each use), then use the
encrypt(message, key=None) and
decrypt(ciphertext, key=None) methods.
All values must be binary strings (
str on Python 2,
bytes on Python 3)