Skip to main content

python libsodium wrapper

Project description

This is a very simple wrapper around libsodium masquerading as nacl.

This wrapper requires a pre-installed libsodium, then it provides access to the following functions:

Constants:

crypto_box_NONCEBYTES crypto_box_PUBLICKEYBYTES crypto_box_SECRETKEYBYTES crypto_box_ZEROBYTES crypto_box_BOXZEROBYTES crypto_secretbox_KEYBYTES crypto_secretbox_NONCEBYTES crypto_secretbox_KEYBYTES crypto_secretbox_ZEROBYTES crypto_secretbox_BOXZEROBYTES crypto_sign_PUBLICKEYBYTES crypto_sign_SECRETKEYBYTES crypto_stream_KEYBYTES crypto_stream_NONCEBYTES crypto_generichash_BYTES crypto_scalarmult_curve25519_BYTES crypto_scalarmult_BYTES crypto_sign_BYTES

randombytes(l)

crypto_scalarmult_curve25519(n,p) crypto_scalarmult_curve25519_base(n)

crypto_generichash(m, k=’’, outlen=crypto_generichash_BYTES) crypto_generichash_init(outlen=crypto_generichash_BYTES, k=’’) crypto_generichash_update(state, m) crypto_generichash_final(state, outlen=crypto_generichash_BYTES)

crypto_box_keypair() crypto_box(msg, nonce, pk, sk) crypto_box_open(c, nonce, pk, sk)

crypto_secretbox(msg, nonce, k) crypto_secretbox_open(c, nonce, k)

crypto_sign_keypair() crypto_sign(m, sk) crypto_sign_open(sm, pk)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysodium-0.5-beta.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysodium-0.5_beta-py2.7.egg (20.6 kB view details)

Uploaded Egg

File details

Details for the file pysodium-0.5-beta.tar.gz.

File metadata

  • Download URL: pysodium-0.5-beta.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pysodium-0.5-beta.tar.gz
Algorithm Hash digest
SHA256 4cd6e811e76a5985a897698f8b7bbda26bc0a50b3f57b16b98235f67753e516b
MD5 497d1ea6058c616cfa5920048b448977
BLAKE2b-256 8318343b00eac5a03fe7fbcf2aeefb7b5c61cec1238dfd9bda0e2bef18171910

See more details on using hashes here.

File details

Details for the file pysodium-0.5_beta-py2.7.egg.

File metadata

File hashes

Hashes for pysodium-0.5_beta-py2.7.egg
Algorithm Hash digest
SHA256 91ae7ecbcad4a6097c2a3f742a354e8b8b6962c1c616995e790edaf4e6e3a53a
MD5 e7c0c9a9230044242d60dcb078efbef3
BLAKE2b-256 a4a1b23f59bf6084faf30f59b5290479231c12afbe1468b9cead4f665c7f7195

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page