Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Base64 Encoding

by jethro (Monsignor)
on Feb 20, 2011 at 03:50 UTC ( [id://889144]=note: print w/replies, xml ) Need Help??


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

To state the obvious, this can't be all the code, there must be code where the data is sent to the server. Why should that necessarily be error free? What about the remote server, is there some convincing evidence that that code is correct?

Since you also encode the key, do you send the key as well? Maybe you appended it wrongly (or just the wrong way) and that gets sent back as additional characters. I notice that the number of additional characters is about what you would expect if you got sent back the base64_decoded cleartext password. But the characters themselves don't look like base64_decoded, so my guess is probably wrong, but might give you a hint in the right direction

PS: AFAIK MIME::Base64 is a very old and well-tested module, the chance to find the bug there are pretty slim

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

    What a plonker I am, Jethro is correct, I have been including the key in the form transmission when it was nor necessary.

    Thanks to all that responded to my initial query.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://889144]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-18 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found