X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 511CBDC0128 for ; Sat, 29 Jun 2013 17:04:07 +0000 (UTC) Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 3ADDB20494 for ; Sat, 29 Jun 2013 13:04:06 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute4.internal (MEProxy); Sat, 29 Jun 2013 13:04:06 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:subject:message-id :references:mime-version:content-type:in-reply-to; s=smtpout; bh=8MqqLU4DtT0qZoe5oWr2KkMPHWk=; b=icCANOq4/tdeOKQEcdMylHrem+qx hFdDa9qQQ7buDCGFhnb2i3xEQcw6cGr66DVArIoAyYzQUtX5Lf4AQmCuaxlcscLR s8MvOIIywEU/NFFsa/T9qHwR76y5e9JjDlGrlIZfFMxqigF/y6E4jh+zxL4cdA2a yqmwG9TlFpcZAMQ= X-Sasl-enc: QottAF288ph7SLJVsXFaFuyyzr/XBwzx2H0vIeb9O44U 1372525446 Received: from localhost (unknown [69.86.161.244]) by mail.messagingengine.com (Postfix) with ESMTPA id 00FEF6802B9 for ; Sat, 29 Jun 2013 13:04:05 -0400 (EDT) Date: Sat, 29 Jun 2013 13:04:05 -0400 From: Dubiousjim To: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Re: [PATCH 8/8] main/syslinux: hooks for bootloader password Message-ID: <20130629170405.GB1776@zen> Mail-Followup-To: alpine-devel@lists.alpinelinux.org References: <20130628163549.69d54b33@ncopa-desktop.alpinelinux.org> <20130628164000.GC1712@zen.nyu.edu> <20130629154905.GA1776@zen> 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-Disposition: inline In-Reply-To: <20130629154905.GA1776@zen> User-Agent: Mutt/1.5.21 (2010-09-15) 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. -- Dubiousjim dubiousjim@gmail.com --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---