Libnacl
Python ctypes wrapper for libsodium
Install / Use
/learn @saltstack/LibnaclREADME
============== Python libnacl
This library is used to gain direct access to the functions exposed by Daniel J. Bernstein's nacl library via libsodium. It has been constructed to maintain extensive documentation on how to use nacl as well as being completely portable. The file in libnacl/init.py can be pulled out and placed directly in any project to give a single file binding to all of nacl.
Higher Level Classes
The libnacl code also ships with many high level classes which make nacl cryptography easy and safe, for documentation please see: http://libnacl.readthedocs.org/
Why libnacl
There are a number of libraries out there binding to libsodium, so why make libnacl?
- libnacl does not have any non-python hard deps outside of libsodium
- libnacl does not need to be compiled
- libnacl is easy to package and very portable
- Inclusion of high level pythonic encryption classes
- Ability to have a single embeddable and transferable bindings file that can be added directly to python applications without needing to dep libnacl
This makes libnacl very portable, very easy to use and easy to distribute.
Install
The libnacl code is easiy installed via a setup.py from the source or via pip.
From Source:
.. code-block:: bash
tar xvf libnacl-1.5.2.tar.gz
cd libnacl-1.5.2
python setup.py install
Via Pip:
.. code-block:: bash
pip install libnacl
Remember that libnacl can be installed for python 2 and 3.
Linux distributions
Libnacl is shiped with many linux distributions, check your distribution
package manager for the package python-libnacl, python2-libnacl
and/or python3-libnacl.
Related Skills
node-connect
339.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
