Method AesCrypt():setKey() Professional

Provides a key used for encryption or decryption.

:setKey([<cKey>|<oKey>]) --> lSuccess
The encryption buffer is prepared by passing the key. The key is used to encrypt and to decrypt the data. The length of the key must be either 128, 192 or 256 bit. <cKey> is interpreted as a binary character string.
Alternatively, an object of the class SecureKey() can be passed as the key.

The method :setKey() returns .T. on succes, .F. otherwise.


This method allows to set the key on an existent instance of the class AesCrypt.


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.