Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace pysodium with libnacl #377

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hoh
Copy link

@hoh hoh commented Sep 19, 2024

The library pysodium is used as "a very simple wrapper around libsodium masquerading as nacl".

libnacl is another wrapper around the nacl library developed and maintained by the Salt
project and with extensive documentation on https://libnacl.readthedocs.io and has been
update to use the pyproject.toml format. The status of this library is marked as 5 - Production/Stable on PyPI.

The pysodium library has a bare bone repository with no documentation available and still uses the old 'setup.py' format. The status of this library is marked as 4 - Beta on PyPI.

The library `pysodium` is used as
"a very simple wrapper around libsodium masquerading as nacl".

`libnacl` is another wrapper around the nacl
library developed and maintained by the Salt
project and with extensive documentation on
https://libnacl.readthedocs.io and has been
update to use the `pyproject.toml` format.
The status of this library is marked as
`5 - Production/Stable` on PyPI.

The `pysodium` library has a bare bone
repository with no documentation available and
still uses the old 'setup.py' format.
The status of this library is marked as
`4 - Beta` on PyPI.
@hoh hoh marked this pull request as ready for review September 19, 2024 11:13
@droserasprout
Copy link
Member

Hi! I like this idea! Pysodium is luckily not abandoned, but libnacl's wheels and documentation make it an attractive drop-in replacement. The only thing I worry about is a chance to break projects relying on pysodium but not adding it as a dependency explicitly. But I guess it's a pretty exotic case.

@hoh
Copy link
Author

hoh commented Sep 21, 2024

Thanks for the positive feedback.

Another motivation is to package pytezos (or at least the cryptography part) in Nixpkgs, which has libnacl already packaged but not pysodium

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants