lithium\security\validation\RequestToken::key()
Generates a single-use key to be embedded in a form or used with another non-idempotent
request (a request that changes the state of the server or application), that will match
against a client session token using the check()
method.
Parameters
-
array
$options
An array of options to be passed to
RequestToken::get()
.
Returns
stringReturns a hashed key string for use with RequestToken::check()
.
Source
public static function key(array $options = []) {
return Password::hash(static::get($options));
}