$$randomnessSource
$$randomnessSource : \CryptoManana\Core\Abstractions\Randomness\AbstractGenerator
The randomness generator.
Trait TokenAsymmetricTransformationTrait - Reusable implementation of `TokenTransformationInterface`.
$$asymmetricCipherSource : \CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null
The message asymmetric 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.