Git Product home page Git Product logo

pysodium's Introduction

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

Build Status

This wrapper requires a pre-installed libsodium from:

https://github.com/jedisct1/libsodium

then it provides access to the following functions:

Constants:

crypto_aead_chacha20poly1305_KEYBYTES, crypto_aead_chacha20poly1305_NONCEBYTES crypto_aead_chacha20poly1305_ietf_KEYBYTES, crypto_aead_chacha20poly1305_ietf_NONCEBYTES crypto_aead_chacha20poly1305_ABYTES, crypto_auth_KEYBYTES, crypto_auth_BYTES, 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, crypto_pwhash_SALTBYTES, crypto_pwhash_STRBYTES, crypto_pwhash_OPSLIMIT_INTERACTIVE, crypto_pwhash_MEMLIMIT_INTERACTIVE, crypto_pwhash_OPSLIMIT_MODERATE, crypto_pwhash_MEMLIMIT_MODERATE, crypto_pwhash_OPSLIMIT_SENSITIVE, crypto_pwhash_MEMLIMIT_SENSITIVE, crypto_pwhash_ALG_DEFAULT, crypto_pwhash_scryptsalsa208sha256_SALTBYTES, crypto_pwhash_scryptsalsa208sha256_STRBYTES, crypto_pwhash_scryptsalsa208sha256_STRPREFIX, crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE, crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE, crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE, crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE, crypto_hash_sha256_BYTES crypto_hash_sha512_BYTES

crypto_scalarmult_curve25519(n, p)

crypto_scalarmult_curve25519_base(n)

crypto_stream_chacha20_xor(message, nonce, key)

crypto_auth(message, key)

crypto_auth(tag, message, key)

crypto_aead_chacha20poly1305_encrypt(message, ad, nonce, key)

crypto_aead_chacha20poly1305_decrypt(ciphertext, ad, nonce, key)

crypto_aead_chacha20poly1305_encrypt_detached(message, ad, nonce, key)

crypto_aead_chacha20poly1305_decrypt_detached(ciphertext, mac, ad, nonce, key)

crypto_aead_chacha20poly1305_ietf_encrypt(message, ad, nonce, key)

crypto_aead_chacha20poly1305_ietf_decrypt(ciphertext, ad, nonce, key)

crypto_generichash(m, k=b'', outlen=crypto_generichash_BYTES)

crypto_generichash_init(outlen=crypto_generichash_BYTES, k=b'')

crypto_generichash_update(state, m)

crypto_generichash_final(state, outlen=crypto_generichash_BYTES)

randombytes(size)

crypto_box_keypair()

crypto_box_seed_keypair(seed)

crypto_box(msg, nonce, pk, sk)

crypto_box_open(c, nonce, pk, sk)

crypto_box_easy(msg, nonce, pk, sk)

crypto_box_open_easy(c, nonce, pk, sk)

crypto_box_detached(msg, nonce, pk, sk)

crypto_box_open_detached(c, mac, nonce, pk, sk)

crypto_secretbox(msg, nonce, k)

crypto_secretbox_open(c, nonce, k)

crypto_box_seal(msg, pk)

crypto_box_seal_open(c, pk, sk)

crypto_sign_keypair()

crypto_sign_seed_keypair(seed)

crypto_sign(m, sk)

crypto_sign_detached(m, sk)

crypto_sign_open(sm, pk)

crypto_sign_verify_detached(sig, msg, pk)

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

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

crypto_sign_pk_to_box_pk(pk)

crypto_sign_sk_to_box_sk(sk)

crypto_sign_sk_to_pk(sk)

crypto_sign_sk_to_seed(sk)

crypto_pwhash_scryptsalsa208sha256(outlen, passwd, salt, opslimit, memlimit)

crypto_pwhash_scryptsalsa208sha256_str(passwd, opslimit, memlimit)

crypto_pwhash_scryptsalsa208sha256_str_verify(stored, passwd)

crypto_pwhash(outlen, passwd, salt, opslimit, memlimit, alg)

crypto_pwhash_str(passwd, opslimit, memlimit)

crypto_pwhash_str_verify(pstr, passwd)

crypto_hash_sha256(message)

crypto_hash_sha512(message)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.