sign
string public \Bitrix\Main\Security\Sign\Signer::sign( string $value, string|null $salt = null );
Non-static method signs message, returns string in the format: "{message}{separator}{signature}"
.
Parameters
Parameter | Description | Version |
---|---|---|
$value | Message for signing. | |
$salt | Salt, if needed. |
Exceptions
Example
// If salt needed $foo = (new Signer)->sign('test', 'my_salt'); // Otherwise $bar = (new Signer)->sign('test');
© «Bitrix24», 2001-2024
Up