FOFEncryptAes::encryptString
Encrypts a string using AES
Signature
public function encryptString(string
$stringToEncrypt,
[bool
$base64encoded = true] )
Parameters
-
$stringToEncrypt
- The plaintext to encrypt
-
$base64encoded
- Should I Base64-encode the result?
Returns
- string
- The cryptotext. Please note that the first 16 bytes of
the raw string is the IV (initialisation vector) which is necessary for decoding the string.