| ImageEn, unit ImageEnProc |
|
TImageEnProc.Decrypt
Declaration
procedure Decrypt(const PassKey: AnsiString; Algorithm: TIEEncryptionAlgorithm = ieeaTEA);
procedure Decrypt(PassKey: array of Byte; Algorithm: TIEEncryptionAlgorithm = ieeaTEA);
Description
Decrypts the current image (layer), which has been encrypted using
Encrypt.
You must specify the same
PassKey and
Algorithm that was used for encrypting.
Warning: If you are unable to decrypt an image, ensure it was not saved to a lossy format such as JPEG.
Example

ImageEnView1.IO.LoadFromFile('crypted.png');
ImageEnView1.Proc.Decrypt('captiva', ieeaTEA2);
Demo
| Demos\InputOutput\Encrypt\Encrypt.dpr |