FOFEncryptAes::__construct
Initialise the AES encryption object
Signature
public function __construct(string
$key,
[integer
$strength = 256,
[string
$mode = 'cbc']] )
Parameters
-
$key
- The encryption key (password). It can be a raw key (32 bytes) or a passphrase.
-
$strength
- Bit strength (128, 192 or 256)
-
$mode
- Ecnryption mode. Can be ebc or cbc. We recommend using cbc.