Method AesCrypt():setKey() Professional

Provides a key used for encryption or decryption.

Syntax
:setKey([<cKey>|<oKey>]) --> lSuccess
Parameters
<cKey>
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.
<oKey>
Alternatively, an object of the class SecureKey() can be passed as the key.
Return

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

Description

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

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.