$$randomnessSource
$$randomnessSource : \CryptoManana\Core\Abstractions\Randomness\AbstractGenerator
The randomness generator.
Trait TokenSymmetricTransformationTrait - Reusable implementation of `TokenTransformationInterface`.
$$symmetricCipherSource : \CryptoManana\Core\Abstractions\MessageEncryption\AbstractBlockCipherAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null
The message symmetric encryption service.
generateAuthenticationToken(integer $length = 64) : \CryptoManana\DataStructures\AuthenticationToken
Generate a secure token and create an encrypt representation.
integer | $length | The desired output string length in bytes (default => 64). |
Validation errors.
The authentication token data structure object.
extractAuthenticationToken(string $cipherToken) : string
Extracts the token from the cipher data via a predefined configuration.
string | $cipherToken | The encrypted token string. |
Validation errors.
The decrypted authentication token.