Skip to content

Version 1.4.0

Compare
Choose a tag to compare
@paragonie-scott paragonie-scott released this 28 Nov 16:06
· 459 commits to master since this release
v1.4.0
  • Implemented the *_keygen() functions which are present in ext/sodium (#52)
  • Added crypto_pwhash_is_available() for projects that depend on sodium_compat and need feature detection (#55)
  • Implemented crypto_aead_aes256gcm_* API (available on PHP 7.1+ only). You can use the is_available() method at runtime to detect if this option is available.
  • Converted a lot of exception types to use a new SodiumException (as per ext/sodium). There are still places that a TypeError will be thrown.

This is the final release of sodium_compat before PHP 7.2 is released. All open source projects are encouraged to set 1.4 as the minimum version supported.