You are here

function aes_get_old_key in Real AES 7

1 call to aes_get_old_key()
aes_decrypt_old in aes/aes.module

File

aes/aes.module, line 143
Enable to satisfy dependencies on aes.module.

Code

function aes_get_old_key() {
  $storage_method = variable_get("aes_key_storage_method", "Database");
  if ($storage_method == "Database") {
    $key = variable_get("aes_key", FALSE);
  }
  if ($storage_method == "File") {
    $key = file_get_contents(variable_get("aes_key_path", ""));
  }
  return $key;
}