From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1651 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Help-wanted tasks for musl Date: Mon, 20 Aug 2012 03:35:02 +0200 Message-ID: <20120820013502.GG16602@port70.net> References: <20120819042611.GA8731@brightrain.aerifal.cx> <20120819114914.GD16602@port70.net> <20120819165652.GE16602@port70.net> <20120819172921.GF16602@port70.net> <20120820005128.GB27715@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1345426518 17919 80.91.229.3 (20 Aug 2012 01:35:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2012 01:35:18 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1652-gllmg-musl=m.gmane.org@lists.openwall.com Mon Aug 20 03:35:19 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1T3Gtg-0003ai-G5 for gllmg-musl@plane.gmane.org; Mon, 20 Aug 2012 03:35:16 +0200 Original-Received: (qmail 13476 invoked by uid 550); 20 Aug 2012 01:35:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 13462 invoked from network); 20 Aug 2012 01:35:14 -0000 Content-Disposition: inline In-Reply-To: <20120820005128.GB27715@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1651 Archived-At: * Rich Felker [2012-08-19 20:51:28 -0400]: > The characters '=', '-', and '$' are not valid in salt, are they? > My preference would be to reject anything that looks like a setting > but actually gets treated as salt, rather than hashing it in some > implementation-specific way that leads to buggy, non-portable password > hashes. > it's not clear what the acceptable characters are.. originally the [a-zA-Z0-9./] is the base64 set used but the implementations tend to accept anything for salt (it will go through some hash or encryption function anyway, the only exception is '$' which is a separator around the salt and maybe the characters used by the passwd file format) otherwise i'd rather be more strict with the input than deal with weird corner cases, but i don't know what are the practices (ie rejecting '=' or '-' is reasonable or not)