Method |
Description |
|
hash ( string $input, integer $length = Sodium\CRYPTO_GENERICHASH_BYTES ) : string |
Wrapper around \Sodium\crypto_generichash() |
|
hkdfBlake2b ( string $ikm, integer $length, string $info = '', string $salt = '' ) : string |
Use a derivative of HKDF to derive multiple keys from one. |
|
keyed_hash ( string $input, string $key, integer $length = Sodium\CRYPTO_GENERICHASH_BYTES ) : string |
Wrapper around \Sodium\crypto_generichash() |
|
raw_hash ( string $input, integer $length = Sodium\CRYPTO_GENERICHASH_BYTES ) : string |
Wrapper around \Sodium\crypto_generichash() |
|
raw_keyed_hash ( string $input, string $key, integer $length = Sodium\CRYPTO_GENERICHASH_BYTES ) : string |
Wrapper around \Sodium\crypto_generichash() |
|
safeStrcpy ( string $string ) : string |
PHP 7 uses interned strings. We don't want altering this one to alter
the original string. |
|
safeStrlen ( string $str ) : integer |
Safe string length |
|
safeSubstr ( string $str, integer $start, integer $length = null ) : string |
Safe substring |
|
xorStrings ( string $left, string $right ) : string |
Calculate A xor B, given two binary strings of the same length. |
|