This function encrypts current image (layer).

The image should be saved using lossless formats and in full rgb color spaces (no palette).

To decrypt use IEImage.Decrypt.

The algorithm used is TEA Tiny Encryption Algorithm with a key of 128 bits.

There is no way to know when an image is crypted, unless you insert special tags (like EXIF or IPTC) manually.

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public void Encrypt(
	string passkey,
	IEImage..::..EncryptAlgorithm algorithm
)
Public Sub Encrypt ( _
	passkey As String, _
	algorithm As IEImage..::..EncryptAlgorithm _
)
public:
void Encrypt(
	String^ passkey, 
	IEImage..::..EncryptAlgorithm algorithm
)

Parameters

passkey
String
Specifies a string password, which will be hashed to a 128 bits key
algorithm
IEImage..::..EncryptAlgorithm
Specifies the algorithm to use. We suggest to use TEA2 for better encryption.

See Also