You are here

Deprecated in Ubercart 8.4

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Namesort descending Location Type Deprecation Direct uses Namespaced uses Overrides Use statements
MarstonEncryption uc_store/src/MarstonEncryption.php class in Ubercart 8.x-4.x. This class is provided only for backwards compatibility with Drupal 6 and Drupal 7 Ubercart sites. Trimmed down version of GPL class by Tony Marston. Details available at http://www.tonymarston.co.uk/php-mysql/encryption.html Usage: 1) Obtain the encryption object. ex: $crypt = \Drupal::service('uc_store.encryption'); 2) To encrypt string data, use the encrypt method with the key. ex: $encrypted = $crypt->encrypt($key, $string); 3) To decrypt string data, use the decrypt method with the original key. ex: $decrypted = $crypt->decrypt($key, $string); 4) To check for errors, use the errors method to return an array of errors. ex: $errors = $crypt->getErrors();

Other projects