GNU bug report logs -
#28942
base64 decoding issue
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28942 in the body.
You can then email your comments to 28942 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#28942
; Package
coreutils
.
(Sun, 22 Oct 2017 16:19:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Aaron Schneider <notstop2 <at> users.sourceforge.net>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Sun, 22 Oct 2017 16:19:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#28942
; Package
coreutils
.
(Tue, 30 Oct 2018 01:42:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 28942 <at> debbugs.gnu.org (full text, mbox):
tags 28942 notabug
close 28942
stop
(triaging old bugs)
On 2017-10-22 10:13 a.m., Aaron Schneider wrote:
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
>
It seems your message was lost and not replied to in a eyar.
Sorry about that.
If you try to encode the "magnet://" string to base64,
you'll get:
$ echo "magnet:?xt=urn:btih:f9aadd61ca33fd1d0c47296140e88faf1f3dd2a2" \
| base64 -w0 ; echo
bWFnbmV0Oj94dD11cm46YnRpaDpmOWFhZGQ2MWNhMzNmZDFkMGM0NzI5NjE0MGU4OGZhZjFmM2RkMmEyCg==
Which means your encoded string (the one starting with "QUF") is
not identical to the encoded "magnet://" string.
As such, I'm closing this bug.
If this is still an issue, discussion can continue by replying to this
thread.
-assaf
Added tag(s) notabug.
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 30 Oct 2018 01:42:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
28942 <at> debbugs.gnu.org and Aaron Schneider <notstop2 <at> users.sourceforge.net>
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 30 Oct 2018 01:42:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 27 Nov 2018 12:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 124 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.