Méthode |
Description |
|
authenticate ( string $message, AuthenticationKey $secretKey, mixed $encoding = Halite::ENCODE_BASE64URLSAFE ) : string |
Authenticate a string |
|
decrypt ( string $ciphertext, EncryptionKey $secretKey, mixed $encoding = Halite::ENCODE_BASE64URLSAFE ) : HiddenString |
Decrypt a message using the Halite encryption protocol |
|
encrypt ( HiddenString $plaintext, EncryptionKey $secretKey, mixed $encoding = Halite::ENCODE_BASE64URLSAFE ) : string |
Encrypt a message using the Halite encryption protocol |
|
splitKeys ( EncryptionKey $master, string $salt = '', BaseConfig $config = null ) : array |
Split a key (using HKDF-BLAKE2b instead of HKDF-HMAC-*) |
|
unpackMessageForDecryption ( string $ciphertext ) : array |
Unpack a message string into an array (assigned to variables via list()). |
|
verify ( string $message, AuthenticationKey $secretKey, string $mac, mixed $encoding = Halite::ENCODE_BASE64URLSAFE, SymmetricConfig $config = null ) : boolean |
Verify the authenticity of a message, given a shared MAC key |
|