Method AesCrypt():prepareBuffer() Professional

Prepares a buffer for encryption.

Syntax
:prepareBuffer(<cBuffer>[, cPadChar]) --> nLength
Parameters
<cBuffer>
The buffer to be used for encryption. The variable holding the buffer must be passed by reference, because the length might be modified.
<cPadChar>
The character with which the buffer is padded up to the required length. The default value of cPadChar is the space character Chr(32).
Return

The length of the buffer is returned.

Description

Because AES is a block code, the required buffer length depends on the operation mode and may require additional padding characters. In ECB and CBS modes the buffer length is set to a multiple of a block. In CTS mode, the buffer length is set to a minimum of two block lengths.

This method is called automatically by CryptFile() and CryptTable().

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.