Crypt::hmacBase64

public static function Crypt::hmacBase64

public static Crypt::hmacBase64($data, $key)

Calculates a base-64 encoded, URL-safe sha-256 hmac.

Parameters

mixed $data: Scalar value to be validated with the hmac.

mixed $key: A secret key, this can be any scalar value.

Return value

string A base-64 encoded sha-256 hmac, with + replaced with -, / with _ and any = padding characters removed.

File

core/lib/Drupal/Component/Utility/Crypt.php, line 46

Class

Crypt
登录查看完整内容