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 from:

https://github.com/jedisct1/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_sign_SEEDBYTES, 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_seed_keypair(seed)

crypto_sign(m, sk)

crypto_sign_open(sm, pk)

crypto_stream(cnt, nonce = None, key = None)

crypto_stream_xor(msg, cnt, nonce = None, key = None)

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.6.5.1.tar.gz (5.5 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.6.5.1-py2.7.egg (10.8 kB view details)

Uploaded Egg

File details

Details for the file pysodium-0.6.5.1.tar.gz.

File metadata

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

File hashes

Hashes for pysodium-0.6.5.1.tar.gz
Algorithm Hash digest
SHA256 8977b8737679ff73d4e24b50ae733b06db0bade134f73964f8c6d8334b6eaf3c
MD5 d176d3969868c1891768e2d831876e73
BLAKE2b-256 86e9b8bc02ddb37e31446924e48ddc1ca610e37ebb58085e249aa3980d0cd33f

See more details on using hashes here.

File details

Details for the file pysodium-0.6.5.1-py2.7.egg.

File metadata

  • Download URL: pysodium-0.6.5.1-py2.7.egg
  • Upload date:
  • Size: 10.8 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pysodium-0.6.5.1-py2.7.egg
Algorithm Hash digest
SHA256 80865dba7304608237720396992e29304931c3fbb7c9baa544acfdb086325940
MD5 dd545946f06ef1dfacba0d8ce2be43a6
BLAKE2b-256 242c6a5b1eb6b4849625853ec29fbee2b068dfcf6cd2ce4624335988c6c4bbfb

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