KeyVaultClient.EncryptDataAsync Method

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, e.g. RSA, RSA_OAEP

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

Syntax

'Declaration
[DebuggerStepThroughAttribute] 
public Task<byte[]> EncryptDataAsync (
    string keyIdentifier,
    string algorithm,
    byte[] plainText
)

Parameters

  • keyIdentifier
    The key identifier
  • algorithm
    The encryption algorithm
  • plainText
    The plain text to encrypt

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

KeyVaultClient Class
KeyVaultClient Members
Microsoft.KeyVault.Client Namespace