..msdn Add comment W32 Constants Translate this page
Encrypts data. The algorithm used to encrypt the data is designated by the key held by the CSP module and is referenced by the hKey parameter.|
BOOL WINAPI CryptEncrypt(
DECLARE INTEGER CryptEncrypt IN advapi32;
[in] The handle to the encryption key. An application obtains this handle by using either the CryptGenKey or the CryptImportKey function.
[in] The handle to a hash object.
[in] A Boolean value that specifies whether this is the last section in a series being encrypted.
[in] Predefined value, can be zero.
[in, out] A pointer to a buffer that contains the plaintext to be encrypted. The plaintext in this buffer is overwritten with the ciphertext created by this function.
[in, out] A pointer to a DWORD value that , on entry, contains the length, in bytes, of the plaintext in the pbData buffer. On exit, this DWORD contains the length, in bytes, of the ciphertext written to the pbData buffer.
[in] Specifies the total size, in bytes, of the input pbData buffer.
|If the function succeeds, the function returns TRUE.|
|If a large amount of data is to be encrypted, it can be done in sections by calling CryptEncrypt repeatedly. The Final parameter is set to TRUE on the last call to CryptEncrypt so that the encryption engine can properly finish the encryption process.|
|Word Index links for the CryptEncrypt :|
|Translate this page:|
Visited in last 7 days: 20
|Created: ||2006-04-21 18:17:03|
|Modified: ||2006-04-21 18:20:44|
Copyright © 2001-2017
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.
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.6.38), the Open Source standard SQL database,
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc.