Utility class for cryptographically-secure string handling routines.
Hierarchy
- class \Drupal\Component\Utility\Crypt
Related topics
- Utility classes and functions
- Overview of utility classes and functions for developers.
File
- core/lib/Drupal/Component/Utility/Crypt.php, line 10
Namespace
Drupal\Component\Utility
Members
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. |
Please login to continue.