Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "CryptProtectData" in [All]

advapi32

.

Do not use the LSA private data functions. Instead, use the CryptProtectData and CryptUnprotectData functions.

.

Do not use the LSA private data functions. Instead, use the CryptProtectData and CryptUnprotectData functions.

Structures

.
Summary
.
Summary
.

Remember that DATA_BLOB.pbData for the output parameters of the CryptProtectData and CryptUnprotectData functions will point to a block of unmanaged memory that needs to be cleaned up using a call to LocalFree from kernel32. You will of course have to use pinvoke to call LocalFree.

Enums

.
Summary
.

    // per machine protected data -- any user on machine where CryptProtectData

.

    // force credential synchronize during CryptProtectData()

.

    ' per machine protected data -- any user on machine where CryptProtectData

.

    ' force credential synchronize during CryptProtectData()

crypt32

.
Summary
The CryptProtectData function performs encryption on the data in a DATA_BLOB structure. Typically, only a user with the same logon credential as the encrypter can decrypt the data. In addition, the encryption and decryption usually must be done on the same computer.
.

private static extern bool CryptProtectData(

.

Private Shared Function CryptProtectData ( _

.

Warning If the logon credentials are lost or forgotten, the data is usually unrecoverable. However, if the dwFlags parameter in the CryptProtectData function is set to CRYPTPROTECT_LOCAL_MACHINE with or without additional entropy specified in the pOptionalEntropy parameter, any user on the same computer where the data was encrypted can recover the data.

.

You can store the encryption or master keys used by CryptProtectData in a file in the Windows folder or in the system registry so that certain persistent registry implementations will retain the encryption keys after losing and regaining power. See Master Key Storage for more information.

.
Documentation
[CryptProtectData] on MSDN
.

CryptProtectData


 
Access PInvoke.net directly from VS: