4 * Contains \Drupal\bootstrap\Utility\Crypt.
7 namespace Drupal\bootstrap\Utility;
10 * Extends \Drupal\Component\Utility\Crypt.
14 class Crypt extends \Drupal\Component\Utility\Crypt {
17 * Generates a unique hash name.
20 * All arguments passed will be serialized and used to generate the hash.
23 * The generated hash identifier.
25 public static function generateHash() {
26 $args = func_get_args();
28 if (is_string($args[0])) {
29 $hash = $args[0] . ':';
31 elseif (is_array($args[0])) {
32 $hash = implode(':', $args[0]) . ':';
34 $hash .= self::hashBase64(serialize($args));