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

NSec for XChaCha20Poly1305 and Ed25519? #10

Open
wegel opened this issue Jan 20, 2021 · 0 comments
Open

NSec for XChaCha20Poly1305 and Ed25519? #10

wegel opened this issue Jan 20, 2021 · 0 comments

Comments

@wegel
Copy link

wegel commented Jan 20, 2021

Hi,

Since you're mentionning that you're searching for a managed library implementing XChaCha20Poly1305, have you thought about using NSec (https://nsec.rocks/)? It's not managed per se, as it's a wrapper around libsodium (although a pretty thin one, and which follows the same philosophies as libsodium for memory allocations, etc), so maybe you're not willing to consider it. But using libsodium, to me, makes sense, as its implementation of the algorithms can be trusted, and that's crucial for a cryptography library.

It also has an implementations of Ed25519 and BLAKE2b. The XChaCha20Poly1305 implementation is in the Experimental namespace, but that's just because the specs for the algorithm itself are not so clearly defined.

By using NSec and System.Text.Json (instead of simple-json), you wouldn't have any external dependencies which, again, to me is an interesting feature for anything that's supposed to be secure.

I'm not affiliated with NSec in any way, I was just searching for a Paseto lib today, found yours, and saw what would be possible.

Thanks for considering it!

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

No branches or pull requests

1 participant