in reply to Re^2: Base64 Encoding
in thread Base64 Encoding

That is not all the code. You don't show how you send it to the server, and you didn't show the code on the server. We can't tell what you actually sent, and if you sent the correct string, we can't tell you where the algorithm on the client differs from the one on the server if we only see one.

We may also be able to deduce the difference if we knew the exact output of the server's decode. (The "additional characters" you mentioned.)

Replies are listed 'Best First'.
Re^4: Base64 Encoding
by mikemc24 (Novice) on Feb 19, 2011 at 20:06 UTC

    The remote server returns

    Form decoded the Crypt field as follows. VendorTxCode=1298062774&Amount=43.01&Currency=GBP&Description=Goods&Su +ccessURL=http://www.h appy.com/success.html&FailureURL=http://www.unhappy.com/failure.html&B +illingSurname=Blo ggs&BillingFirstnames=Fred&BillingAddress1=30 Peyton Place&BillingCity=Somewhere&BillingPostCode=AB1 2CD&BillingCountry=UK&DeliverySurname=Bloggs&DeliveryFirstnames=Bill&D +eliveryAddress1=30 Peyton Place&DeliveryCity=Somewhere&DeliveryPostCode=AB1 2CD&DeliveryCountry=UK6 U

    And on the last field DeliveryCountry=UK6UK3EåÆÿðyë

      That's not very exact. You seem to have added line breaks. I can probably fix that accurately. But you gave two different strings. I don't trust either. Please be precise; specify what bytes those are.
Re^4: Base64 Encoding
by mikemc24 (Novice) on Feb 19, 2011 at 20:12 UTC
    The remote server returns
    Form decoded the Crypt field as follows. VendorTxCode=1298062774&Amount=43.01&Currency=GBP&Description=Goods&Su +ccessURL=http://www.h appy.com/success.html&FailureURL=http://www.unhappy.com/failure.html&B +illingSurname=Blo ggs&BillingFirstnames=Fred&BillingAddress1=30 Peyton Place&BillingCity=Somewhere&BillingPostCode=AB1 2CD&BillingCountry=UK&DeliverySurname=Bloggs&DeliveryFirstnames=Bill&D +eliveryAddress1=30 Peyton Place&DeliveryCity=Somewhere&DeliveryPostCode=AB1 2CD&DeliveryCountry=UK6 U

    And on the last field DeliveryCountry:

    UK6UK3EåÆÿðyë