Tests if the last 40 characters of a given string $string
matches the HMAC of the rest of the string and, if true,
returns the string without the HMAC. In case of a HMAC
validation error, an exception is thrown.
public validateAndStripHmac ( string $string ) : string | ||
$string | string | The string with the HMAC appended (in the format 'string |
Résultat | string | the original string without the HMAC, if validation was successful |