[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature request - base64 Filename Safe Alphabet

From: Pádraig Brady
Subject: Re: Feature request - base64 Filename Safe Alphabet
Date: Tue, 29 Apr 2008 13:59:59 +0100
User-agent: Thunderbird (X11/20071008)

Christopher Kerr wrote:
> After being burned by using `head -c6 /dev/urandom | base64` as part of a 
> directory name, I realised that it would be useful if base64 had an option to 
> generate URL and Filename safe encodings, as specified in RFC 3548 section 4.
> This would make
> cat FILE | base64 --filename-safe
> equivalent to
> cat FILE | base64 | tr '+/' '-_'

Not a bad idea. I've needed stuff like that before:

Perhaps `tr '+/' '._'` would be better so that
you don't need to worry about "-" at the start of a filename?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]