From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.devel Subject: Re: Add support for base64url variant Date: Wed, 12 Jun 2019 21:24:39 +0200 Organization: Linux Private Site Message-ID: <87pnnihaiw.fsf@Rainer.invalid> References: <87pnobiglo.fsf@killashandra.ballybran.fr> <83r28p57jp.fsf@gnu.org> <87zhnd55eq.fsf@killashandra.ballybran.fr> <83mujd54qv.fsf@gnu.org> <87lfyr4p49.fsf@killashandra.ballybran.fr> <834l50pk1p.fsf@gnu.org> <874l4wt1dn.fsf@killashandra.ballybran.fr> <83sgsg7yln.fsf@gnu.org> <87blz4nelr.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="111859"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 12 21:24:57 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hb8rg-000SxG-CY for ged-emacs-devel@m.gmane.org; Wed, 12 Jun 2019 21:24:56 +0200 Original-Received: from localhost ([::1]:34488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hb8rf-0008Ms-Dn for ged-emacs-devel@m.gmane.org; Wed, 12 Jun 2019 15:24:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38141) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hb8rZ-0008MR-45 for emacs-devel@gnu.org; Wed, 12 Jun 2019 15:24:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hb8rX-00061L-VQ for emacs-devel@gnu.org; Wed, 12 Jun 2019 15:24:49 -0400 Original-Received: from [195.159.176.226] (port=36202 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hb8rX-0005zD-NZ for emacs-devel@gnu.org; Wed, 12 Jun 2019 15:24:47 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hb8rV-000SiG-GI for emacs-devel@gnu.org; Wed, 12 Jun 2019 21:24:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:kQry0sCZwWAvF1tKr6ZRhtnwEoE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237459 Archived-At: Stefan Monnier writes: >> Base32url is useful for use on case-insensitive filesystems or >> with case-insensitive protocols. > > That's what it's designed for, yes, but I can't think of any example > where that's useful. E.g. for case-insensitive filenames, using a hash > instead of a base32 encoding was a better option in all the cases I've > encountered because I only needed "one-way" and it conveniently bounds > the max file name length. I've used it for sharding into a blobstore on NTFS/SMB (two characters for first level, so tree width of 1024). The key is indeed a hash (SHA512), so the probability of a collision would be low enough to just ignore the case (for only 512 wide tree), but it felt cleaner to encode via base32url instead. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra