Performs the inverse transformation of the data from array, tranformed by CryptEncode().
- Parameters
-
method | Data transformation method. Can be one of the following values:
CRYPT_BASE64 | BASE64 |
CRYPT_AES128 | AES encryption with 128 bit key (16 bytes) |
CRYPT_AES256 | AES encryption with 256 bit key (32 bytes) |
CRYPT_DES DES | Encryption with 56 bit key (7 bytes) |
CRYPT_HASH_SHA1 | SHA1 HASH calculation |
CRYPT_HASH_SHA256 | SHA256 HASH calculation |
CRYPT_HASH_MD5 | MD5 HASH calculation |
CRYPT_ARCH_ZIP | ZIP archives |
|
data | Source array |
key | Key array |
result | Destination array |
- Returns
- Amount of bytes in the destination array or 0 in case of error. To obtain information about the error call the GetLastError() function.