You are here

function aes_enable in AES encryption 5

Same name and namespace in other branches
  1. 6 aes.module \aes_enable()
  2. 7 aes.install \aes_enable()

File

./aes.module, line 560

Code

function aes_enable() {
  if (extension_loaded("mcrypt") === false) {
    drupal_set_message(t("The mcrypt PHP-extension is not loaded! The AES module can't work without this extension."), "error");
  }
  $iv = base64_decode(variable_get("aes_encryption_iv", ""));
  if (empty($iv)) {
    aes_make_iv();
  }
}