From owner-freebsd-current@freebsd.org Thu Feb 18 14:52:49 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6C33AADBF8 for ; Thu, 18 Feb 2016 14:52:49 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 649A67F4 for ; Thu, 18 Feb 2016 14:52:49 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by mail-wm0-x232.google.com with SMTP id g62so31676070wme.1 for ; Thu, 18 Feb 2016 06:52:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=euRWRzwTZR9flPFPkjOuj0lzmKifoaluGtjefYKAYiw=; b=0XRPUKsjnjmypYW8fczBf4E+cH1k4MKyccw8dg+ssjMzSaPpH0U3zNVv3MKZF5BawH Eeqcqet9qudVZ1z6WtQdqdcmRbQDaYzkv0+YOtQpRTPxeqILAuoCR/Vmik4RNJb9k/MI duzn6JAlM60NvgyPs31Li1HCTQodAQ0dkIuppRp99YF5d4Z5/x7sfGK9tU7HQICi8CcA XKdAHeVMmTz7Y5XKUTMEKImcbb2GnszxkGpryJixEpvH4dvDyt+NnBsbX1fnoLHknxRt YhbT5RNBFM0dmLPkEEh69+qVV5+8jwN9yoxlhS0qUVrVCeuTNBwuAqAdI6Vtus72hd6Y 7C/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=euRWRzwTZR9flPFPkjOuj0lzmKifoaluGtjefYKAYiw=; b=XJdZ3EvJY0uSHfncYSpXa2h5DPteVvFKWZw13iIeq9Yd+KZeoYsgyZJNfn26TOodZu OVdVodJh+Xif3tYujfMfTTQKh/GuormfoLiXhcLAgvuXko4VDuzPAaUglF2FWBvAp+VK GDpWdvj5rqkgkf5xUFPSTg3ZP1HRPpidoR5V2qTWSssLf+GD59aJerfQY2DPTZQ1KnMA wdqVZHUuyX/UmoBBlfqfiQpPsYXbOqWhIIgNVizYusZJQlHP36+MsGkmlx+C1ONlTk2F G8fMJ+ugyTAtLjMVVunTmop0iqgJPY3/IEDNljTsPa7Z2V34GI2J6K0FAfyAWkf7Rty3 l/Dg== X-Gm-Message-State: AG10YOR0akgdHv8zu8O5Pw/iMdr0hrkG/0PsGxI1B5lDQlGmnWNHTmtQqrP5gIJvtieQkg== X-Received: by 10.194.143.82 with SMTP id sc18mr7891263wjb.14.1455807166942; Thu, 18 Feb 2016 06:52:46 -0800 (PST) Received: from gumby.homeunix.com ([94.8.71.47]) by smtp.gmail.com with ESMTPSA id x65sm3370300wmg.4.2016.02.18.06.52.45 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 18 Feb 2016 06:52:45 -0800 (PST) Date: Thu, 18 Feb 2016 14:52:44 +0000 From: RW To: freebsd-current@freebsd.org Subject: Re: HELP: Howtwo create a passwd-suitable hash for usage with psswd -H 0? Message-ID: <20160218145244.0b1e4c94@gumby.homeunix.com> In-Reply-To: <20160218141624.5f560f2d@freyja.zeit4.iv.bundesimmobilien.de> References: <20160218141624.5f560f2d@freyja.zeit4.iv.bundesimmobilien.de> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd10.2) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 14:52:49 -0000 On Thu, 18 Feb 2016 14:16:24 +0100 O. Hartmann wrote: > Hello out there, > > I run into a problem and digging for a solution didn't work out. > > Problem: I need a string that reflects the hashed password for the > usage with > > passwd -H 0 Did you mean -h? > I think the procedure is using > > sha512 -s Password > > and using this output for further processing, but how? It's not as simple as that, password hashes are usually salted and iterated. Salting means that the password is combined with a randomly generated string stored in plaintext, which means that the password doesn't hash to a fixed string. I'm not sure exactly what you are trying to do, but crypt(3) may be of help.