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

use libsodium? #44

Closed
ThomasWaldmann opened this issue Jun 5, 2015 · 2 comments
Closed

use libsodium? #44

ThomasWaldmann opened this issue Jun 5, 2015 · 2 comments

Comments

@ThomasWaldmann
Copy link
Member

https://pypi.python.org/pypi/pysodium

curve25519, chacha20, poly1305

but: currently not yet widespread in "stable" dists (like ubuntu 14.04)

@ThomasWaldmann
Copy link
Member Author

pysodium.crypto_aead_chacha20poly1305_encrypt(b'', data, b'', b"0"*32)

is about twice as fast as:

hashlib.sha512(data).hexdigest()

Note: the first call does not do encryption, it only uses the "additional data (AD)" part of AEAD to compute an 128bit authentication tag over that data.

@ThomasWaldmann
Copy link
Member Author

see #45

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

No branches or pull requests

1 participant