CryptographicEngine.DecryptAsync | decryptAsync method

Applies to Windows and Windows Phone

Decrypts the encrypted input data using the supplied key.

Syntax


Windows.Security.Cryptography.Core.CryptographicEngine.decryptAsync(key, data, iv).done( /* Your success and error handlers */ );

Parameters

key

Type: CryptographicKey

The key to use to decrypt the encrypted input data.

data

Type: IBuffer

The encrypted data to decrypt.

iv

Type: IBuffer

The initial vector for a symmetric key. For an asymmetric key, set this value to null.

Return value

Type: IAsyncOperation<IBuffer>

The decrypted data.

Remarks

If the key is a persisted key and the decrypt operation requires UI or takes a long time, use the DecryptAsync method instead of the Decrypt method. For example, UI is required when decrypting using a key that is strongly protected.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Security.Cryptography.Core
Windows::Security::Cryptography::Core [C++]

Metadata

Windows.winmd

See also

CryptographicEngine

 

 

Show:
© 2014 Microsoft