Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.69 KB

dataprotectionprovider_unprotectstreamasync_908153904.md

File metadata and controls

44 lines (30 loc) · 1.69 KB
-api-id -api-type
M:Windows.Security.Cryptography.DataProtection.DataProtectionProvider.UnprotectStreamAsync(Windows.Storage.Streams.IInputStream,Windows.Storage.Streams.IOutputStream)
winrt method

Windows.Security.Cryptography.DataProtection.DataProtectionProvider.UnprotectStreamAsync

-description

Asynchronously decrypts a data stream.

-parameters

-param src

Stream to decrypt.

-param dest

Decrypted stream.

-returns

Represents an asynchronous action.

-remarks

You must call the DataProtectionProvider() constructor before calling this method.

For security descriptors and SDDL strings, you must set the enterprise authentication capability in the manifest. The enterprise authentication capability is restricted to UWP app built with company accounts, and is subject to additional onboarding validation. You should avoid the enterprise authentication capability unless it is absolutely necessary. For more information, see Registering for a developer account. For example, the following SID and SDDL providers require the enterprise authentication capability:

  • "SID=S-1-5-21-4392301 AND SID=S-1-5-21-3101812"
  • "SDDL=O:S-1-5-5-0-290724G:SYD:(A;;CCDC;;;S-1-5-5-0-290724)(A;;DC;;;WD)"

These providers do not require the enterprise authentication capability:

  • "LOCAL=user"
  • "LOCAL=machine"
  • "WEBCREDENTIALS=MyPasswordName"
  • "WEBCREDENTIALS=MyPasswordName,myweb.com"

-examples

-see-also