共用方式為


IKey.EncryptAsync(Byte[], Byte[], Byte[], String, CancellationToken) Method

Definition

public System.Threading.Tasks.Task<Tuple<byte[],byte[],string>> EncryptAsync (byte[] plaintext, byte[] iv, byte[] authenticationData, string algorithm, System.Threading.CancellationToken token);
abstract member EncryptAsync : byte[] * byte[] * byte[] * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[] * byte[] * string>
Public Function EncryptAsync (plaintext As Byte(), iv As Byte(), authenticationData As Byte(), algorithm As String, token As CancellationToken) As Task(Of Tuple(Of Byte(), Byte(), String))

Parameters

plaintext
Byte[]
iv
Byte[]
authenticationData
Byte[]
algorithm
String

Returns

Applies to