Encrypts a string using AES
public encryptString ( string $stringToEncrypt, boolean $base64encoded = true ) : string | ||
$stringToEncrypt | string | The plaintext to encrypt |
$base64encoded | boolean | Should I Base64-encode the result? |
리턴 | 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. |