function _deploy_decrypt in Deploy - Content Staging 7.3
Centralize method for handling decryption.
Parameters
$value: string needs to be decrypt
1 call to _deploy_decrypt()
- DeployAuthenticatorSession::__construct in plugins/
DeployAuthenticatorSession.inc - Constructor for a deploy authenticator.
File
- ./
deploy.module, line 851 - Deploy module functions.
Code
function _deploy_decrypt($value) {
if (module_exists('encrypt')) {
return decrypt($value);
}
elseif (variable_get('encrypt_module_enabled', FALSE)) {
// Encrypt module was enabled, but not anymore.
drupal_set_message('Your endpoints are broken');
return;
}
// Encrypt was never enabled.
return base64_decode($value);
}