You are here

function commerce_ups_encrypt in Commerce UPS 7.2

Same name and namespace in other branches
  1. 7 commerce_ups.module \commerce_ups_encrypt()

Encrypt a specified value.

1 call to commerce_ups_encrypt()
commerce_ups_settings_form_submit in includes/commerce_ups.admin.inc
Implements hook_form_submit().
5 string references to 'commerce_ups_encrypt'
commerce_ups_decrypt_vars in ./commerce_ups.module
Decrypt all api variables in one function call.
commerce_ups_settings_form in includes/commerce_ups.admin.inc
Implements hook_settings_form().
commerce_ups_settings_form_submit in includes/commerce_ups.admin.inc
Implements hook_form_submit().
commerce_ups_settings_form_validate in includes/commerce_ups.admin.inc
Implements hook_form_validate().
commerce_ups_uninstall in ./commerce_ups.install
Implements hook_uninstall().

File

./commerce_ups.module, line 258
Handles main functionality for Commerce UPS module.

Code

function commerce_ups_encrypt($value) {
  if (module_exists('aes')) {
    return aes_encrypt($value);
  }
  return encrypt($value);
}