[ic] Credit card info encrypted twice by GPG!

Ed LaFrance interchange-users@interchange.redhat.com
Tue Aug 21 19:24:00 2001


At 06:07 PM 08/21/2001 -0400, you wrote:
>Quoting Ed LaFrance (edl@newmediaems.com):
> > GPG:    gpg (GnuPG) 1.0.6
> > IC:     4.7.4
> > OS:     Yellowdog linux 1.3
> >
> > GPG is double-encrypting the credit card info - It has to be passed 
> through
> > decryption twice to get down to the plain text.  This only happens when 
> the
> > encryption is handled by IC as part of the submission process; a text
> > encryption with the same command string and options in the shell works
> > fine.  I've looked at Order.pm and the Route's and nothing is jumping out
> > at me.  Ideas anyone?
>
>Sounds like both "encrypt" and "credit_card" are set in the route.
>
>--
>Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH  45013
>phone +1.513.523.7621      <mheins@redhat.com>

Hmmm... encrypt is set to 0 in all routes; credit_card is set to 1 in the 
last route (main) and is omitted from all others.  This is exactly the way 
the foundation demo was distributed with 4.7.4.

Setting credit_card to 0 in the last route did the trick.  So when both 
credit_card and encrypt are set to 0, but an encryptor is supplied, the 
credit card info is encrypted. Never would have thought as such... boolean 
logic re-invented, I guess ;-}

Thanks!

- Ed L.






===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================