Documentation

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

ParameterDescriptionVersion
$valueMessage for signing.
$saltSalt, if needed.

Exceptions

Example

 // If salt needed
 $foo = (new Signer)->sign('test', 'my_salt');

 // Otherwise
 $bar = (new Signer)->sign('test');



© «Bitrix24», 2001-2024
Up