Is something odd being done with the Base64 encode?
In the process of writing a plugin bridge, I found myself needed to duplicate the url to call a function with parameters via port 32400. So, to check structure, I ran the base64 encoded string through a decoder and got, what I thought, was the necessary information I was looking for.. however, when running that same decoded text through the encode process again, I got a different base64 encoded string.What gives?
Example:
I have the following url:
<Directory key="/music/firefly/:/function/MainMenu/KGRwMApTJ3NlbmRlcicKcDEKKGlQTVMuT2JqZWN0cwpJdGVtSW5mb1JlY29yZApwMgooZHAzClMnaXRl<br />
bVRpdGxlJwpwNApTJ0ZpcmVmbHkgc3ZuLTE2OTYgb24gc29iZXInCnA1CnNTJ3RpdGxlMScKcDYKUydGa<br />
XJlZmx5IE1lZGlhIFNlcnZlcicKcDcKc1MndGl0bGUyJwpwOApOc1MnYXJ0JwpwOQpOc2JzLg==" name="Firefly svn-1696 on sober"/>
I run the encoded portion of the string through a base64_decode() [here](http://www.opinionatedgeek.com/dotnet/tools/Base64Decode/Default.aspx) and I get:
(dp0<br />
S'sender'<br />
p1<br />
(iPMS.Objects<br />
ItemInfoRecord<br />
p2<br />
(dp3<br />
S'itemTitle'<br />
p4<br />
S'Firefly svn-1696 on sober'<br />
p5<br />
sS'title1'<br />
p6<br />
S'Firefly Media Server'<br />
p7<br />
sS'title2'<br />
p8<br />
NsS'art'<br />
p9<br />
Nsbs.
I then take that decoded text, and immediately run it back through a base64_encode() but this time I get:
KGRwMA0KUydzZW5kZXInDQpwMQ0KKGlQTVMuT2JqZWN0cw0KSXRlbUluZm9SZWNvcmQNCnAyDQooZHAz<br />
DQpTJ2l0ZW1UaXRsZScNCnA0DQpTJ0ZpcmVmbHkgc3ZuLTE2OTYgb24gc29iZXInDQpwNQ0Kc1MndGl0b<br />
GUxJw0KcDYNClMnRmlyZWZseSBNZWRpYSBTZXJ2ZXInDQpwNw0Kc1MndGl0bGUyJw0KcDgNCk5zUydhcn<br />
QnDQpwOQ0KTnNicy4=
As you can see, that encoded string is different than the one above.. but why? Are you guys doing something behind-the-scenes that I'm missing?
Any help is appreciated. :)