Using Win32 functions in Visual FoxPro Image Gallery
Cryptography Reference
..msdn
CertCloseStore
CertFindCertificateInStore
CertFreeCertificateContext
CertOpenSystemStore
CryptAcquireContext
CryptBinaryToString
CryptCreateHash
CryptDecrypt
CryptDeriveKey
CryptDestroyHash
CryptDestroyKey
CryptEncrypt
CryptEnumProviders
CryptEnumProviderTypes
CryptExportKey
CryptGenKey
CryptGenRandom
CryptGetDefaultProvider
CryptGetHashParam
CryptGetKeyParam
CryptGetProvParam
CryptHashData
CryptImportKey
CryptProtectData
CryptReleaseContext
CryptStringToBinary
CryptUnprotectData
WinVerifyTrust
Code examples:
CryptUnprotectData
..msdn    Add comment     W32 Constants      Translate this page
Decrypts and does an integrity check of the data in a DATA_BLOB structure. Scoped to local computer, or to user credentials.
Code examples:
Declaration:
BOOL WINAPI CryptUnprotectData(
  __in       DATA_BLOB *pDataIn,
  __out_opt  LPWSTR *ppszDataDescr,
  __in_opt   DATA_BLOB *pOptionalEntropy,
  __in       PVOID pvReserved,
  __in_opt   CRYPTPROTECT_PROMPTSTRUCT *pPromptStruct,
  __in       DWORD dwFlags,
  __out      DATA_BLOB *pDataOut
);
FoxPro declaration:
DECLARE INTEGER CryptUnprotectData IN crypt32;
    INTEGER pDataIn,;
    STRING szDataDescr,;
    INTEGER pOptionalEntropy,;
    INTEGER pvReserved,;
    STRING @pPromptStruct,;
    LONG dwFlags,;
    INTEGER @pDataOut
Parameters:
pDataIn [in]
A pointer to a DATA_BLOB structure that holds the encrypted data.

ppszDataDescr [out, optional]
A pointer to a string-readable description of the encrypted data included with the encrypted data.

pOptionalEntropy [in, optional]
A pointer to a DATA_BLOB structure that contains a password or other additional entropy used when the data was encrypted.

pPromptStruct [in, optional]
A pointer to a CRYPTPROTECT_PROMPTSTRUCT structure that provides information about where and when prompts are to be displayed.

dwFlags [in]
This parameter can be one of several predefined flags.

pDataOut [out]
A pointer to a DATA_BLOB structure that receives the decrypted data.
Return value:
If the function succeeds, the function returns TRUE.
My comment:
When you have finished using sensitive information, clear it from memory by calling the SecureZeroMemory function.

See also: CryptProtectData, CryptProtectMemory, CryptUnprotectMemory
Word Index links for the CryptUnprotectData :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2010-08-23 11:10:10
Modified: 2010-08-23 11:14:19
Visited in last 7 days: 12
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.211.100)
9 sec.Function: 'RealGetWindowClass'
Function group: 'Window'
51 sec.Example: 'How to delete a service object'
4 day(s)Function: 'DrawIcon'
 Example: 'Verifying a file using the Authenticode policy provider'
 Function: 'CryptCreateHash'
 Function: 'IpRenewAddress'
Function group: 'IP Helper'
Google
Advertise here!