videni / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

Base64 encoding wrong/different than expected #132

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use the Encode/Decode tool to encode something is base64
2. Send encoded suff to webservice
3. only part of the message is able to be decoded

stringuser:stringpassword
on web page list below:        
  c3RyaW5ndXNlcjpzdHJpbmdwYXNzd29yZA==
in wiztools:
 rO0ABXQAGnN0cmluZ3VzZXI6c3RyaW5ncGFzc3dvcmQg

stringuserstringpassword
webpage: c3RyaW5ndXNlcnN0cmluZ3Bhc3N3b3JkDQo=
wiztools: rO0ABXQAGXN0cmluZ3VzZXJzdHJpbmdwYXNzd29yZCA=
What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.
I have compared the output to 
http://www.motobit.com/util/base64-decoder-encoder.asp. and the output from the 
web page works for the service I am calling, and it totally difference from 
what wiztools provides

Original issue reported on code.google.com by robine...@gmail.com on 31 May 2011 at 4:41

GoogleCodeExporter commented 8 years ago
I took some public domain Base64 implementation which generated wrong results. 
Changing the implementation will break backward compatibility. And not having 
correct Base64 functionality will make RESTClient non-standard. Let me think of 
a solution for this...

Original comment by subwiz on 4 Jun 2011 at 5:13

GoogleCodeExporter commented 8 years ago
r561 has the fix.

Original comment by subwiz on 1 Jul 2012 at 7:51