X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 84F24DC0128 for ; Sat, 29 Jun 2013 17:39:43 +0000 (UTC) Received: by mail-wi0-f176.google.com with SMTP id ey16so1821736wid.15 for ; Sat, 29 Jun 2013 10:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; bh=IUknEX2ct/NY557YgllHxsGjeW/UgtqqIcG0jRHvx3s=; b=QsJw39eaxh85vt5vIMwpNHmZeeM5OuyeA3KVQ5y0yVpl0uS6RI72J9jvVQrjOfIOuU axcVnXx6Y20zIFUFv9OgbqRMjbGV0Xynd3pb6hgaCNjPg9aERNXGAQ5OKdW2/xNc131D VZ7d8kWWUoELCinfcHRdxVWBD2746oxdcDh0Q4PhMen11jhU7MliZCSBMNfK27hQca5S hEOIQpUWEjHrWXnmpHPEDxISisAKfvzsooap9Wb4KqtXlmx6P+q0A/syfZjqoFNEHhof pMcUw+T4m8JhJm+6gW5zOUNXDiqai/K8/weJtN8+uXOqtlnwoB3H3CswnX2kchKa/pCW tLYA== X-Received: by 10.180.73.81 with SMTP id j17mr7223469wiv.51.1372527581976; Sat, 29 Jun 2013 10:39:41 -0700 (PDT) Received: from vostro ([83.145.235.194]) by mx.google.com with ESMTPSA id n45sm18109792eew.1.2013.06.29.10.39.41 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 29 Jun 2013 10:39:41 -0700 (PDT) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Sat, 29 Jun 2013 20:39:55 +0300 From: Timo Teras To: Dubiousjim Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Re: [PATCH 8/8] main/syslinux: hooks for bootloader password Message-ID: <20130629203955.63d6c278@vostro> In-Reply-To: <20130629170405.GB1776@zen> References: <20130628163549.69d54b33@ncopa-desktop.alpinelinux.org> <20130628164000.GC1712@zen.nyu.edu> <20130629154905.GA1776@zen> <20130629170405.GB1776@zen> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.17; i686-pc-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 29 Jun 2013 13:04:05 -0400 Dubiousjim wrote: > On Sat, Jun 29, 2013 at 11:49:05AM -0400, Dubiousjim wrote: > > and that sha1 passwords are also honored. I guess it'd be > > possible to generate the latter using openssl, but it'll require > > some elbow grease and I haven't tested how to do it. (Whereas > > generating MD5 passwords in the right format using openssl is also > > straightforward.) > > > > For reference, this, using the perl utility from syslinux: > > $ sha1pass pass salt > $4$salt$bZuH+MGRe/PzSo19kyjHeYHQT+k$ > > ought, so far as I have understood the relevant documentation, and the > code for perl-digest-sha1, be reproducible as follows: > > $ printf '$4$%s$%s$\n' salt $(echo saltpass | openssl dgst -sha1 > -binary | base64 | sed 's/=$//') $4$salt$PKE3LoCWMo+QH2d2luTjhakNfFs$ > > However, as you can see the results are not the same. So there's > some piece here that I haven't yet understood. echo should have -n to inhibit the linefeed. --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---