2017 © Pedro Peláez
 

library sodium_compat

Pure PHP implementation of libsodium; uses the PHP extension if it exists

image

paragonie/sodium_compat

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  • Wednesday, July 4, 2018
  • by paragonie-scott
  • Repository
  • 25 Watchers
  • 221 Stars
  • 187,670 Installations
  • PHP
  • 44 Dependents
  • 5 Suggesters
  • 23 Forks
  • 1 Open issues
  • 38 Versions
  • 57 % Grown

The README.md

Sodium Compat

Build Status Psalm Status Latest Stable Version Latest Unstable Version License Downloads, (*1)

Sodium Compat is a pure PHP polyfill for the Sodium cryptography library (libsodium), a core extension in PHP 7.2.0+ and otherwise available in PECL., (*2)

If you have the PHP extension installed, Sodium Compat will opportunistically and transparently use the PHP extension instead of our implementation., (*3)

Major Versions and Branches

sodium_compat v1.21.0 was the last v1.x release from the master branch. From now on, all future releases that support PHP 5.2 - 8.0 and 32-bit integers will be in the v1.x branch., (*4)

Newer versions of sodium_compat (i.e., v2.0.0) will continue to live in the master branch, unless a new major version is needed. The goal of this work is to improve code readability and performance, while reducing boilerplate code., (*5)

When in doubt, refer to the README file in the master branch for the latest in version information., (*6)

Which version should I use?

sodium_compat version PHP versions supported 32-bit support? Branch
v1.x.y 5.2.4 - LATEST YES v1.x
v2.x.y 8.1 - LATEST NO master

If you need 32-bit PHP support (PHP_INT_SIZE == 4), continue using sodium_compat v1.x. If you want improved performance and smaller dependencies, use v2.x., (*7)

We recommend libraries and frameworks set a Composer version constraint as follows:, (*8)

{
    "require": {
        /* ... */
        "paragonie/sodium_compat": ">= 1"
        /* ... */
    }
}

Applications should, conversely, specify the actual version that matters to them and their deployments., (*9)

IMPORTANT!

This cryptography library has not been formally audited by an independent third party that specializes in cryptography or cryptanalysis., (*10)

If you require such an audit before you can use sodium_compat in your projects and have the funds for such an audit, please open an issue or contact security at paragonie dot com so we can help get the ball rolling., (*11)

However, sodium_compat has been adopted by high profile open source projects, such as Joomla! and Magento. Furthermore, sodium_compat was developed by Paragon Initiative Enterprises, a company that specializes in secure PHP development and PHP cryptography, and has been informally reviewed by many other security experts who also specialize in PHP., (*12)

If you'd like to learn more about the defensive security measures we've taken to prevent sodium_compat from being a source of vulnerability in your systems, please read Cryptographically Secure PHP Development., (*13)

Installing Sodium Compat

If you're using Composer:, (*14)

composer require paragonie/sodium_compat

Install From Source

If you're not using Composer, download a release tarball (which should be signed with our GnuPG public key), extract its contents, then include our autoload.php script in your project., (*15)

<?php
require_once "/path/to/sodium_compat/autoload.php";

PHP Archives (Phar) Releases

Since version 1.3.0, sodium_compat releases include a PHP Archive (.phar file) and associated GPG signature. First, download both files and verify them with our GPG public key, like so:, (*16)

# Getting our public key from the keyserver:
gpg --fingerprint 7F52D5C61D1255C731362E826B97A1C2826404DA
if [ $? -ne 0 ]; then
    echo -e "\033[33mDownloading PGP Public Key...\033[0m"
    gpg  --keyserver pgp.mit.edu --recv-keys 7F52D5C61D1255C731362E826B97A1C2826404DA
    # Security <security@paragonie.com>
    gpg --fingerprint 7F52D5C61D1255C731362E826B97A1C2826404DA
    if [ $? -ne 0 ]; then
        echo -e "\033[31mCould not download PGP public key for verification\033[0m"
        exit 1
    fi
fi

# Verifying the PHP Archive
gpg --verify sodium-compat.phar.sig sodium-compat.phar

Now, simply include this .phar file in your application., (*17)

<?php
require_once "/path/to/sodium-compat.phar";

Support

Commercial support for libsodium is available from multiple vendors. If you need help using sodium_compat in one of your projects, contact Paragon Initiative Enterprises., (*18)

Non-commercial report will be facilitated through Github issues. We offer no guarantees of our availability to resolve questions about integrating sodium_compat into third-party software for free, but will strive to fix any bugs (security-related or otherwise) in our library., (*19)

Support Contracts

If your company uses this library in their products or services, you may be interested in purchasing a support contract from Paragon Initiative Enterprises., (*20)

Using Sodium Compat

True Polyfill

As per the second vote on the libsodium RFC, PHP 7.2 uses sodium_* instead of \Sodium\*., (*21)

<?php
require_once "/path/to/sodium_compat/autoload.php";

$alice_kp = sodium_crypto_sign_keypair();
$alice_sk = sodium_crypto_sign_secretkey($alice_kp);
$alice_pk = sodium_crypto_sign_publickey($alice_kp);

$message = 'This is a test message.';
$signature = sodium_crypto_sign_detached($message, $alice_sk);
if (sodium_crypto_sign_verify_detached($signature, $message, $alice_pk)) {
    echo 'OK', PHP_EOL;
} else {
    throw new Exception('Invalid signature');
}

General-Use Polyfill

If your users are on PHP < 5.3, or you want to write code that will work whether or not the PECL extension is available, you'll want to use the ParagonIE_Sodium_Compat class for most of your libsodium needs., (*22)

The above example, written for general use:, (*23)

<?php
require_once "/path/to/sodium_compat/autoload.php";

$alice_kp = ParagonIE_Sodium_Compat::crypto_sign_keypair();
$alice_sk = ParagonIE_Sodium_Compat::crypto_sign_secretkey($alice_kp);
$alice_pk = ParagonIE_Sodium_Compat::crypto_sign_publickey($alice_kp);

$message = 'This is a test message.';
$signature = ParagonIE_Sodium_Compat::crypto_sign_detached($message, $alice_sk);
if (ParagonIE_Sodium_Compat::crypto_sign_verify_detached($signature, $message, $alice_pk)) {
    echo 'OK', PHP_EOL;
} else {
    throw new Exception('Invalid signature');
}

Generally: If you replace sodium_ with ParagonIE_Sodium_Compat::, any code already written for the libsodium PHP extension should work with our polyfill without additional code changes., (*24)

Since this doesn't require a namespace, this API is exposed on PHP 5.2., (*25)

Since version 0.7.0, we have our own namespaced API (ParagonIE\Sodium\*) to allow brevity in software that uses PHP 5.3+. This is useful if you want to use our file cryptography features without writing ParagonIE_Sodium_File every time. This is not exposed on PHP < 5.3, so if your project supports PHP < 5.3, use the underscore method instead., (*26)

To learn how to use Libsodium, read Using Libsodium in PHP Projects., (*27)

Help, Sodium_Compat is Slow! How can I make it fast?

There are three ways to make it fast:, (*28)

  1. Use a newer version of PHP (at least 7.2).
  2. Install the libsodium PHP extension from PECL.
  3. Only if the previous two options are not available for you:
    1. Verify that the processor you're using actually implements constant-time multiplication. Sodium_compat does, but it must trade some speed in order to attain cross-platform security.
    2. Only if you are 100% certain that your processor is safe, you can set ParagonIE_Sodium_Compat::$fastMult = true; without harming the security of your cryptography keys. If your processor isn't safe, then decide whether you want speed or security because you can't have both.

How can I tell if sodium_compat will be slow, at runtime?

Since version 1.8, you can use the polyfill_is_fast() static method to determine if sodium_compat will be slow at runtime., (*29)

<?php
if (ParagonIE_Sodium_Compat::polyfill_is_fast()) {
    // Use libsodium now
    $process->execute();
} else {
    // Defer to a cron job or other sort of asynchronous process
    $process->enqueue();
}

Documentation

First, you'll want to read the Libsodium Quick Reference. It aims to answer, "Which function should I use for [common problem]?"., (*30)

If you don't find the answers in the Quick Reference page, check out Using Libsodium in PHP Projects., (*31)

Finally, the official libsodium documentation (which was written for the C library, not the PHP library) also contains a lot of insightful technical information you may find helpful., (*32)

API Coverage

Recommended reading: Libsodium Quick Reference, (*33)

  • Mainline NaCl Features
    • crypto_auth()
    • crypto_auth_verify()
    • crypto_box()
    • crypto_box_open()
    • crypto_scalarmult()
    • crypto_secretbox()
    • crypto_secretbox_open()
    • crypto_sign()
    • crypto_sign_open()
  • PECL Libsodium Features
    • crypto_aead_aegis128l_encrypt()
    • crypto_aead_aegis128l_decrypt()
    • crypto_aead_aegis256_encrypt()
    • crypto_aead_aegis256_decrypt()
    • crypto_aead_aes256gcm_encrypt()
    • crypto_aead_aes256gcm_decrypt()
    • crypto_aead_chacha20poly1305_encrypt()
    • crypto_aead_chacha20poly1305_decrypt()
    • crypto_aead_chacha20poly1305_ietf_encrypt()
    • crypto_aead_chacha20poly1305_ietf_decrypt()
    • crypto_aead_xchacha20poly1305_ietf_encrypt()
    • crypto_aead_xchacha20poly1305_ietf_decrypt()
    • crypto_box_xchacha20poly1305()
    • crypto_box_xchacha20poly1305_open()
    • crypto_box_seal()
    • crypto_box_seal_open()
    • crypto_generichash()
    • crypto_generichash_init()
    • crypto_generichash_update()
    • crypto_generichash_final()
    • crypto_kx()
    • crypto_secretbox_xchacha20poly1305()
    • crypto_secretbox_xchacha20poly1305_open()
    • crypto_shorthash()
    • crypto_sign_detached()
    • crypto_sign_ed25519_pk_to_curve25519()
    • crypto_sign_ed25519_sk_to_curve25519()
    • crypto_sign_verify_detached()
    • For advanced users only:
      • crypto_core_ristretto255_add()
      • crypto_core_ristretto255_from_hash()
      • crypto_core_ristretto255_is_valid_point()
      • crypto_core_ristretto255_random()
      • crypto_core_ristretto255_scalar_add()
      • crypto_core_ristretto255_scalar_complement()
      • crypto_core_ristretto255_scalar_invert()
      • crypto_core_ristretto255_scalar_mul()
      • crypto_core_ristretto255_scalar_negate()
      • crypto_core_ristretto255_scalar_random()
      • crypto_core_ristretto255_scalar_reduce()
      • crypto_core_ristretto255_scalar_sub()
      • crypto_core_ristretto255_sub()
      • crypto_scalarmult_ristretto255_base()
      • crypto_scalarmult_ristretto255()
      • crypto_stream()
      • crypto_stream_keygen()
      • crypto_stream_xor()
      • crypto_stream_xchacha20()
      • crypto_stream_xchacha20_keygen()
      • crypto_stream_xchacha20_xor()
      • crypto_stream_xchacha20_xor_ic()
    • Other utilities (e.g. crypto_*_keypair())
      • add()
      • base642bin()
      • bin2base64()
      • bin2hex()
      • hex2bin()
      • crypto_kdf_derive_from_key()
      • crypto_kx_client_session_keys()
      • crypto_kx_server_session_keys()
      • crypto_secretstream_xchacha20poly1305_init_push()
      • crypto_secretstream_xchacha20poly1305_push()
      • crypto_secretstream_xchacha20poly1305_init_pull()
      • crypto_secretstream_xchacha20poly1305_pull()
      • crypto_secretstream_xchacha20poly1305_rekey()
      • pad()
      • unpad()

Cryptography Primitives Provided

  • X25519 - Elliptic Curve Diffie Hellman over Curve25519
  • Ed25519 - Edwards curve Digital Signature Algorithm over Curve25519
  • Xsalsa20 - Extended-nonce Salsa20 stream cipher
  • ChaCha20 - Stream cipher
  • Xchacha20 - Extended-nonce ChaCha20 stream cipher
  • Poly1305 - Polynomial Evaluation Message Authentication Code modulo 2^130 - 5
  • BLAKE2b - Cryptographic Hash Function
  • SipHash-2-4 - Fast hash, but not collision-resistant; ideal for hash tables.

Features Excluded from this Polyfill

  • sodium_memzero() - Although we expose this API endpoint, we can't reliably zero buffers from PHP., (*34)

    If you have the PHP extension installed, sodium_compat will use the native implementation to zero out the string provided. Otherwise it will throw a SodiumException., (*35)

  • sodium_crypto_pwhash() - It's not feasible to polyfill scrypt or Argon2 into PHP and get reasonable performance. Users would feel motivated to select parameters that downgrade security to avoid denial of service (DoS) attacks., (*36)

    The only winning move is not to play., (*37)

    If ext/sodium or ext/libsodium is installed, these API methods will fallthrough to the extension. Otherwise, our polyfill library will throw a SodiumException., (*38)

    To detect support for Argon2i at runtime, use ParagonIE_Sodium_Compat::crypto_pwhash_is_available(), which returns a boolean value (TRUE or FALSE)., (*39)

  • Libsodium's HKDF API (crypto_kdf_hkdf_*()) is not included because PHP has its own HMAC features amd it was not deemed necessary.

PHPCompatibility Ruleset

For sodium_compat users and that utilize PHPCompatibility in their CI process, there is now a custom ruleset available which can be used to prevent false positives being thrown by PHPCompatibility for the native PHP functionality being polyfilled by this repo., (*40)

You can find the repo for the PHPCompatibilityParagonieSodiumCompat ruleset here on Github and on Packagist., (*41)

The Versions

04/07 2018

dev-master

9999999-dev

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

06/06 2018

v1.6.3

1.6.3.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

22/05 2018

v1.6.2

1.6.2.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

22/05 2018

dev-fix-compat-fallback

dev-fix-compat-fallback

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

21/03 2018

v1.6.1

1.6.1.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

15/02 2018

v1.6.0

1.6.0.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

30/01 2018

v1.5.6

1.5.6.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

18/01 2018

v1.5.5

1.5.5.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

12/01 2018

v1.5.4

1.5.4.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

02/01 2018

v1.5.3

1.5.3.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

02/01 2018

v1.5.2

1.5.2.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

02/01 2018

v1.5.1

1.5.1.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

02/01 2018

v1.5.0

1.5.0.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

28/11 2017

v1.4.0

1.4.0.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

27/11 2017

dev-aes256gcm

dev-aes256gcm

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

29/09 2017

v1.3.1

1.3.1.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

28/09 2017

v1.3.0

1.3.0.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

28/09 2017

dev-php-52-travis

dev-php-52-travis

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

01/09 2017

v1.2.0

1.2.0.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

31/08 2017

dev-windows-32-bit

dev-windows-32-bit

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

05/07 2017

v1.1.0

1.1.0.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

17/06 2017

dev-scrypt

dev-scrypt

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

10/06 2017

v1.0.1

1.0.1.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

09/06 2017

v1.0.0

1.0.0.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

09/06 2017

v0.8.1

0.8.1.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

09/06 2017

v0.8.0

0.8.0.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

12/04 2017

v0.7.0

0.7.0.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

24/03 2017

dev-stream-xchacha20

dev-stream-xchacha20

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium aead curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography rfc 7748 rfc 8032 xchacha20 poly1305 chapoly salpoly chacha20-poly1305 xsalsa20-poly1305 xchacha20-poly1305

21/02 2017

v0.6.0

0.6.0.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography

18/02 2017

v0.5.0

0.5.0.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography

03/02 2017

v0.4.0

0.4.0.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography

26/01 2017

v0.3.1

0.3.1.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography

20/01 2017

v0.3.0

0.3.0.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

authentication php encryption cryptography ecdh libsodium curve25519 elliptic curve side-channel resistant elliptic curve cryptography pure-php cryptography x25519 elliptic curve diffie-hellman ed25519 eddsa edwards-curve digital signature algorithm chacha20 salsa20 xsalsa20 blake2b public-key cryptography secret-key cryptography

17/01 2017

v0.2.2

0.2.2.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

php cryptography elliptic curve side-channel resistant

17/01 2017

v0.2.1

0.2.1.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

php cryptography elliptic curve side-channel resistant

17/01 2017

v0.2.0

0.2.0.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

php cryptography elliptic curve side-channel resistant

13/01 2017

v0.1.1

0.1.1.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

php cryptography elliptic curve side-channel resistant

12/01 2017

v0.1.0

0.1.0.0

Pure PHP implementation of libsodium; uses the PHP extension if it exists

  Sources   Download

ISC

The Requires

 

The Development Requires

by Frank Denis

php cryptography elliptic curve side-channel resistant