ImageEn, unit imageenproc

TImageEnProc.Decrypt

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

Demo  Demos\Other\Encrypt\Encrypt.dpr