=== modified file 'payment/uc_credit/uc_credit.module'
--- payment/uc_credit/uc_credit.module	2009-04-04 13:44:28 +0000
+++ payment/uc_credit/uc_credit.module	2009-04-06 18:48:50 +0000
@@ -106,7 +106,7 @@ function uc_credit_form_alter(&$form, &$
         // Store the encrypted details to the form for processing on submit.
         $form['payment_details_data'] = array(
           '#type' => 'hidden',
-          '#value' => $_SESSION['sescrd'],
+          '#value' => base64_encode($_SESSION['sescrd']),
         );
 
         // Clear the session of the details.
@@ -411,7 +411,7 @@ function uc_payment_method_credit($op, &
 
       // Recover cached CC data in $_POST if it exists.
       if (isset($_POST['payment_details_data'])) {
-        $cache = uc_credit_cache('save', $_POST['payment_details_data']);
+        $cache = uc_credit_cache('save', base64_decode($_POST['payment_details_data']));
       }
 
       // Account for partial CC numbers when masked by the system.

