From unknown Fri Aug 15 15:32:19 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#28942 <28942@debbugs.gnu.org> To: bug#28942 <28942@debbugs.gnu.org> Subject: Status: base64 decoding issue Reply-To: bug#28942 <28942@debbugs.gnu.org> Date: Fri, 15 Aug 2025 22:32:19 +0000 retitle 28942 base64 decoding issue reassign 28942 coreutils submitter 28942 Aaron Schneider severity 28942 normal tag 28942 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 22 12:18:53 2017 Received: (at submit) by debbugs.gnu.org; 22 Oct 2017 16:18:53 +0000 Received: from localhost ([127.0.0.1]:56083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6Ixh-0000pM-9N for submit@debbugs.gnu.org; Sun, 22 Oct 2017 12:18:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6IsF-0000gR-GH for submit@debbugs.gnu.org; Sun, 22 Oct 2017 12:13:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6Is9-00057w-Ed for submit@debbugs.gnu.org; Sun, 22 Oct 2017 12:13:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: **** X-Spam-Status: No, score=4.9 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RECEIVED_FROM_WINDOWS_HOST,T_DKIM_INVALID,URIBL_SBL autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45711) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e6Is9-00057s-Af for submit@debbugs.gnu.org; Sun, 22 Oct 2017 12:13:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6Is7-0008LL-Vv for bug-coreutils@gnu.org; Sun, 22 Oct 2017 12:13:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6Is4-00055w-Qs for bug-coreutils@gnu.org; Sun, 22 Oct 2017 12:13:07 -0400 Received: from mail-oln040092064107.outbound.protection.outlook.com ([40.92.64.107]:45194 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e6Is4-00055F-Eu for bug-coreutils@gnu.org; Sun, 22 Oct 2017 12:13:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=uuaVtmCtkUQZrDtc/VirKenrfLpyt/PKe00d7PgWHZc=; b=V7X4xylKK5Ge+XYUUllbuEn4P1OCOrFm1AW2HaKB6U4nCdEFxGYWTAxPkLHVnmjGERJjzdEov3vuQfVi9mWVQly5Ot3SUwNZH2kwKCJjCIpWUKjbhTHrPUsLrXXZ3QylEV3eznaLUwBqVqrUJ/3JJ8sBWKSDP8qPAC/PZX9r3Y9ikc4PV3WhZF7kP2+2vgUYcGxE2CkTcHegtDHu59P6ydziKnb6bVCGIJgmH3xS9P2BfYjGgDo13N2T8xW+8OnVqeWfIHafHKzcJaXrLXcKGYuE160q/svSoVDjdz1NSYSx2VTeGUZ1CkREn9Qv8LYX9BOlSGSYfCDf0THw5vbsEw== Received: from DB5EUR01FT019.eop-EUR01.prod.protection.outlook.com (10.152.4.52) by DB5EUR01HT034.eop-EUR01.prod.protection.outlook.com (10.152.5.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.77.10; Sun, 22 Oct 2017 16:13:02 +0000 Received: from VI1PR02MB3053.eurprd02.prod.outlook.com (10.152.4.57) by DB5EUR01FT019.mail.protection.outlook.com (10.152.4.249) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.156.4 via Frontend Transport; Sun, 22 Oct 2017 16:13:02 +0000 Received: from VI1PR02MB3053.eurprd02.prod.outlook.com ([fe80::f8a9:8151:f255:c918]) by VI1PR02MB3053.eurprd02.prod.outlook.com ([fe80::f8a9:8151:f255:c918%13]) with mapi id 15.20.0077.023; Sun, 22 Oct 2017 16:13:02 +0000 From: Aaron Schneider To: "bug-coreutils@gnu.org" Subject: base64 decoding issue Thread-Topic: base64 decoding issue Thread-Index: AQHTS07tRnSfMN/zlkSt5qv20ECwbA== Date: Sun, 22 Oct 2017 16:13:01 +0000 Message-ID: Accept-Language: es-ES, en-US Content-Language: es-ES X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=users.sourceforge.net; x-incomingtopheadermarker: OriginalChecksum:49950A0659B3D244933D9E5DE8991450E9F52390243E29142B0B0BF9C97D7956; UpperCasedChecksum:9A951578248C508E469B85D2E0BC0443D579480AAAB041EDAD1BAA0C49A527CE; SizeAsReceived:6879; Count:45 x-ms-exchange-messagesentrepresentingtype: 2 x-tmn: [THc9iirS6oYPJ0OpPLmOo85zqAKssv62] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5EUR01HT034; 6:Pk+P16q7LN9oewiSalfNt/BYjA2JQRwXOrF0F2rufLfTS2zeFoDu/BehWRoWBFBdPipYfg1avokcAZ5nk6/b1wp9nelzlqTqL35nCzCUlS7gpampLArujkyfWjciyKr9Y1RADSwqUSZuydg0UHIThBKXojy177eeU917R5zPamDuE+I52IUW+ZpTQO21wb152N/AyA7NU/S82njWWQPzsb1VRpI970TSY820XANabj+rOid64Pbgz4v5TwqPQHqN2l93lrL9TJQVTco9MKX+UBdJxHl1sov/J6Se4HFolzqy6iNQe1hh/lm1z9GPT3/nI1nGdvf6FbehqFbim/dz9A==; 5:xuzHuXgVylUgplXNNyf/Q4wPTEJxhKNIJSxfZ2w8gTg9uTX+3dWzJ51nbQIdU8+3owzd7Hlpt0NM0eo997qg5XsFx8iY7wO9fsKtsKwMYzGlvmqtBx1u2fIeifyg2mQL2gZBkn4ays0cxiMxjq/S7A==; 24:u25mCwBdGpf8nSFtsjIe0JR1Ozz3K8IDakCBn3RgjsheIGhL0BSNfsUiG6/FCqlIcP6GRfiVNMzJkrThQCm1rr5WFaWUmbaEZTWOVVENaik=; 7:+mUZ/uGAnTP81aZc1DCSuTY+zx6DxoQLu+YuzjzVvYm+PTiT/OO2eAijAy54P1AlOk2Z8FVpZO6iz6OWzaTkKdbud9NopoSCnLpEud3iQ3lZwDypgoFiBwDgBsxu/WzUSoP/I9uYMeQ/z+DZFexLHD+dj9NYccSvw1BxbDNaTh4Mmm6iqxZCwYni8UHSdch1yy0j8wb6F7gtzWdRuJi2StOEwu2Liq+GtAaLfNXSt4A= x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 5121a44e-99cd-4d30-7572-08d51967c511 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1601125374)(1603101448)(1701031045); SRVR:DB5EUR01HT034; x-ms-traffictypediagnostic: DB5EUR01HT034: x-exchange-antispam-report-test: UriScan:(90631092060687)(211936372134217)(93787224681913); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(444000031); SRVR:DB5EUR01HT034; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB5EUR01HT034; x-forefront-prvs: 0468FE4A2B x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT; SFP:1901; SCL:1; SRVR:DB5EUR01HT034; H:VI1PR02MB3053.eurprd02.prod.outlook.com; FPR:; SPF:None; LANG:; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Oct 2017 16:13:01.6531 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT034 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 22 Oct 2017 12:18:52 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.1 (---) Using this website as reference: http://www.xinxinbtw.com/lm/url_kd/f9aadd61ca33fd1d0c47296140e88faf1f3dd2a2= .html I try to decode the=A0"thunder://" link to the "magnet://" link using base6= 4. For me, it adds 'AA' at the beginning (0x4141) which shouldn't be there= . * Website: ------ thunder://QUFtYWduZXQ6P3h0PXVybjpidGloOmY5YWFkZDYxY2EzM2ZkMWQwYzQ3Mjk2MTQwZ= Tg4ZmFmMWYzZGQyYTJaWg=3D=3D ------ magnet:?xt=3Durn:btih:f9aadd61ca33fd1d0c47296140e88faf1f3dd2a2 * My base64 (happens on all versions I've tried): echo QUFtYWduZXQ6P3h0PXVybjpidGloOmY5YWFkZDYxY2EzM2ZkMWQwYzQ3Mjk2MTQwZTg4Zm= FmMWYzZGQyYTJaWg=3D=3D | base64 -d AAmagnet:?xt=3Durn:btih:f9aadd61ca33fd1d0c47296140e88faf1f3dd2a2ZZ Which one is the right? Is this a bug or the website is removing the AA int= entionally? Note that there are extensions for web browsers that automatica= lly change the link like: + https://addons.mozilla.org/en-US/firefox/addon/ease-link/ + https://chrome.google.com/webstore/detail/pfgjjlnidkopfimlhcfcjhakhifbnmo= f From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 29 21:41:08 2018 Received: (at 28942) by debbugs.gnu.org; 30 Oct 2018 01:41:08 +0000 Received: from localhost ([127.0.0.1]:52475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHJ1o-0004ia-Kd for submit@debbugs.gnu.org; Mon, 29 Oct 2018 21:41:08 -0400 Received: from mail-pl1-f179.google.com ([209.85.214.179]:34717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHJ1m-0004i4-Tl; Mon, 29 Oct 2018 21:41:07 -0400 Received: by mail-pl1-f179.google.com with SMTP id f10-v6so4708034plr.1; Mon, 29 Oct 2018 18:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=fAuW1cbt/A5HMbGpClqsZM5qK4/s79xDcyZ5lnGiTMw=; b=MUdN3HWxYustyFhjQ7IC95RNB7u+demJi1sFdGAaSrwrwcv6jqkZzpfPd+mDb5jtRd KnncSviADbEPuZIDNm7jVY4dM4AQCYtX15qinDK4mVSf0y7gXMUUAT4Ow89RdUkbSuay 370A5tyZaUSxm2dr7xvP7AXZxNLkxRlZN2UM5wLA739VficotSjr/2eSQlD7TSt4tWT0 4a90l0wZyXgBe9ip56n8ilBSa6Z0hpgDjyey9ms6Ma6hMRqxdCElruLIPTKSqpNV+drm ozvmsJXbaN09qkfEJXjNPND7y1CYMOjVjDfXglp2Bl7scjhbJbztyulLNqYvBTzeAcvO cDoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fAuW1cbt/A5HMbGpClqsZM5qK4/s79xDcyZ5lnGiTMw=; b=JBhoiN3Guy1IfyhXn3rLAdJEz0VVPxqN7Komt0rRuMA/3EJOkBXGJzHXu3kszC5JPM IgQuhpTJ2x5Mo28fOlBXRERNaHBr8kv+KBiGDVgmPCacvq9kE/HVwxAstIhuosqyeESi k494BTpR9CpDKw7r1vcysEscqEvVOSObv4cFEAGwjmBRIgocbEheIH89QA2rJviTm4tO j0IDlwrX17/IIwXBeqrSg5IjWDhlq8XkcuS1/UCODumon6Taa93jNa+uFGatgIlNYRkB W+W3+/gl0y5lQ3bbPkmlMG+SfCAz2XslgiRAysfl8xTwn/QVSaTMgVbSdzBRTdInEeUc 6e4Q== X-Gm-Message-State: AGRZ1gIP3pqtNAEzKJWFwi/5seOBlvkhqRVfEVKrILCslj4ocMXlr6vc cxUs3Gt7MB6F1osH16S/V5Vc4TI7q0g= X-Google-Smtp-Source: AJdET5c/RP2Or7BJk8hiyNPm4er7QLUKsQvIgzc8nsC8IJ7jqtc3yboh+YKv4otkHxD6Z1JkD+n3Sw== X-Received: by 2002:a17:902:4623:: with SMTP id o32-v6mr16629983pld.187.1540863660321; Mon, 29 Oct 2018 18:41:00 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id b18-v6sm15526255pgg.88.2018.10.29.18.40.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 18:40:59 -0700 (PDT) Subject: Re: bug#28942: base64 decoding issue To: Aaron Schneider , 28942@debbugs.gnu.org References: From: Assaf Gordon Message-ID: <3d9b74a9-9dae-d39f-1ab1-6aac12fc317f@gmail.com> Date: Mon, 29 Oct 2018 19:40:57 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 28942 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From unknown Fri Aug 15 15:32:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 27 Nov 2018 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator