Windows desktop applications
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CryptographicEngine.DecryptAsync | decryptAsync method

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 (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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:
© 2016 Microsoft