
| Current Path : /var/www/html/wirtschaftsclub.web-klick.de/themes/bootstrap/src/Utility/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/wirtschaftsclub.web-klick.de/themes/bootstrap/src/Utility/Crypt.php |
<?php
namespace Drupal\bootstrap\Utility;
use Drupal\Component\Utility\Crypt as CoreCrypt;
/**
* Extends \Drupal\Component\Utility\Crypt.
*
* @ingroup utility
*/
class Crypt extends CoreCrypt {
/**
* Generates a unique hash name.
*
* @param ...
* All arguments passed will be serialized and used to generate the hash.
*
* @return string
* The generated hash identifier.
*/
public static function generateHash() {
$args = func_get_args();
$hash = '';
if (is_string($args[0])) {
$hash = $args[0] . ':';
}
elseif (is_array($args[0])) {
$hash = implode(':', $args[0]) . ':';
}
$hash .= self::hashBase64(serialize($args));
return $hash;
}
}