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_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)

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.5.9.1.tar.gz (5.0 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.9.1-py2.7.egg (21.1 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for pysodium-0.5.9.1.tar.gz
Algorithm Hash digest
SHA256 31cb480987576f509f10d18e7cbde7fe03cd5ffa86204cabae2af39d8d84ce81
MD5 9c91ca4d8fb7bec9e366cc7995fe3d17
BLAKE2b-256 478b13ddabfa2cd6a5db9ea73856b599ca76473ebd0b1af865eeb3d0b296c16a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pysodium-0.5.9.1-py2.7.egg
Algorithm Hash digest
SHA256 afd14534276ba016ca0fe60418a9479f6e50cb34e2c0453f064afae46d99d284
MD5 064abb511391302c4e3bf5d7930472e1
BLAKE2b-256 3311c2cea901a95edf6284303d37543015bfe5bd719b0957368886e01d274b4e

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