GNU bug report logs - #28942
base64 decoding issue

Previous Next

Package: coreutils;

Reported by: Aaron Schneider <notstop2 <at> users.sourceforge.net>

Date: Sun, 22 Oct 2017 16:19:01 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Aaron Schneider <notstop2 <at> users.sourceforge.net>
To: 28942 <at> debbugs.gnu.org
Subject: bug#28942: base64 decoding issue
Date: Sun, 22 Oct 2017 16:13:01 +0000
Using this website as reference:
http://www.xinxinbtw.com/lm/url_kd/f9aadd61ca33fd1d0c47296140e88faf1f3dd2a2.html


I try to decode theĀ "thunder://" link to the "magnet://" link using base64.  For me, it adds 'AA' at the beginning (0x4141) which shouldn't be there.

* Website:
------
thunder://QUFtYWduZXQ6P3h0PXVybjpidGloOmY5YWFkZDYxY2EzM2ZkMWQwYzQ3Mjk2MTQwZTg4ZmFmMWYzZGQyYTJaWg==
------
magnet:?xt=urn:btih:f9aadd61ca33fd1d0c47296140e88faf1f3dd2a2


* My base64 (happens on all versions I've tried):
echo QUFtYWduZXQ6P3h0PXVybjpidGloOmY5YWFkZDYxY2EzM2ZkMWQwYzQ3Mjk2MTQwZTg4ZmFmMWYzZGQyYTJaWg== | base64 -d
AAmagnet:?xt=urn:btih:f9aadd61ca33fd1d0c47296140e88faf1f3dd2a2ZZ

Which one is the right? Is this a bug or the website is removing the AA intentionally? Note that there are extensions for web browsers that automatically change the link like:
+ https://addons.mozilla.org/en-US/firefox/addon/ease-link/
+ https://chrome.google.com/webstore/detail/pfgjjlnidkopfimlhcfcjhakhifbnmof




This bug report was last modified 6 years and 261 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.