Utility class for cryptographically-secure string handling routines.
Name | Modifiers | Type | Description |
---|---|---|---|
Crypt::hashBase64 | public static | function | Calculates a base-64 encoded, URL-safe sha-256 hash. |
Crypt::hashEquals | public static | function | Compares strings in constant time. |
Crypt::hmacBase64 | public static | function | Calculates a base-64 encoded, URL-safe sha-256 hmac. |
Crypt::randomBytes | public static | function | Returns a string of highly randomized bytes (over the full 8-bit range). |
Crypt::randomBytesBase64 | public static | function | Returns a URL-safe, base64 encoded string of highly randomized bytes. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!Crypt.php/class/Crypt/8.1.x