e-CryptIt Engine Xojo Plugin |
|
EinhugurEncrypt.Encrypt Method
To encrypt with Einhugur proprietary encryption from e-CryptitEngine use the Encrypt method.
Encrypt(
Data as String,
Password as String,
Offset as Integer) as String
Parameters
- Data
- The data to encrypt.
- Password
- The password to encrypt the Data.
- Offset
- Parameter used for buffered decryption, e.g. saving a encrypted file.
For example, if your file buffer has a length of 1000 bytes then the first packet you encrypt would have an Offset set to 0, the second set to 1000, the third set to 2000, etc.
Packet size must be dividable by 4!
Not all packets have to be the same size, but it's highly recommended.
Of course, the last packet does not have to be dividable by 4.
Returns
- String
Remarks
Returns the encrypted string.
Always be aware the encrypted data is binary data which can contain anything including character zero and other meta characters, so it may not be used with any text encodings while it is in encrypted form.
Supported Platforms:
MacOS X Cocoa 32 bitMacOS X Cocoa 64 bitWindows 32 bitWindows 64 bitLinux 32 bitLinux 64 bitLinux ARMUnsupported Platforms:
MacOS X Carbon
See Also
EinhugurEncrypt Module