public static function AES::get_key in AES encryption 8.2
Retrieve encryption key. Note we're using YAML files not DB settings.
Return value
string encryption key.
3 calls to AES::get_key()
- AES::decrypt in src/
AES.php - Decrypts a string of encrypted data.
- AES::encrypt in src/
AES.php - Encrypts a string.
- aes_install in ./
aes.install - Implements hook_install().
File
- src/
AES.php, line 78
Class
Namespace
Drupal\aesCode
public static function get_key() {
$config = FileStorageFactory::getActive()
->read('aes.settings');
return isset($config['key']) ? $config['key'] : FALSE;
}