DeterministicEncryption..::..TryEncryptAsync Method
Asynchronously tries to encrypt the given byte array.
Namespace:
Walter.CypherAssembly: Walter.Cypher (in Walter.Cypher.dll)
Syntax
Parameters
- clearBytes
- Type: array<Byte>[]()[][]
The clear bytes to encrypt.
Return Value
A task that represents the asynchronous operation. The task result is a tuple containing the cyphered bytes and the hash.Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if clearBytes is null. |
Exception | Thrown when no ILogger is provided and an exception occurs during encryption. |