Share via


KeyVaultClientExtensions.EncryptDataAsync Method (KeyVaultClient, KeyBundle, String, Byte[])

 

Asynchronously encrypts a single block of data. The amount of data that may be encrypted is determined by the target key type and the encryption algorithm.

Namespace:   Microsoft.Azure.KeyVault
Assembly:  Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)

Syntax

public static Task<KeyOperationResult> EncryptDataAsync(
    this KeyVaultClient client,
    KeyBundle keyBundle,
    string algorithm,
    byte[] plaintext
)
public:
[ExtensionAttribute]
static Task<KeyOperationResult^>^ EncryptDataAsync(
    KeyVaultClient^ client,
    KeyBundle^ keyBundle,
    String^ algorithm,
    array<unsigned char>^ plaintext
)
static member EncryptDataAsync : 
        client:KeyVaultClient *
        keyBundle:KeyBundle *
        algorithm:string *
        plaintext:byte[] -> Task<KeyOperationResult>
<ExtensionAttribute>
Public Shared Function EncryptDataAsync (
    client As KeyVaultClient,
    keyBundle As KeyBundle,
    algorithm As String,
    plaintext As Byte()
) As Task(Of KeyOperationResult)

Parameters

  • plaintext
    Type: System.Byte[]

    The plain text to encrypt.

Return Value

Type: System.Threading.Tasks.Task<KeyOperationResult>

A single block of data to encrypt.

See Also

EncryptDataAsync Overload
KeyVaultClientExtensions Class
Microsoft.Azure.KeyVault Namespace

Return to top