Are two encodings expected to appear in the same decoding? I am trying to fix a digital signature issue by checking the health checks of intermediate strings with base64 encoding.
For example, the following base64 encoding:
R0VUDQoNCg0KRnJpLCAwNCBTZXAgMjAwOSAxMTowNTo0OSBHTVQrMDA6MDANCi8=
and
R0VUCgoKRnJpLCAwNCBTZXAgMjAwOSAxMDozMzoyOCBHTVQrMDA6MDAKLw==
both are decoded to:
GET
Fri, 04 Sep 2009 11:05:49 GMT+00:00
/
(C escapes it: GET\n\n\n Fri, 04 Sep 2009 11:05:49 GMT+00:00\n/)
The first encoding comes from testing two online base64 encoders.
The second encoding comes from the base64 Objective-C encoder available here .
Is there something wrong with the result that I am generating with the Obj-C encoder?
source
share