From owner-freebsd-questions@FreeBSD.ORG Wed Dec 25 12:10:30 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BBDBBE3D for ; Wed, 25 Dec 2013 12:10:30 +0000 (UTC) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 50D4510EE for ; Wed, 25 Dec 2013 12:10:30 +0000 (UTC) Received: by mail-wi0-f178.google.com with SMTP id bz8so7996505wib.11 for ; Wed, 25 Dec 2013 04:10:28 -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=e1v3ACJe2zSYwQu0flzOmqEa74MtMaUDvwYVgmN2+40=; b=mtanYdi0MloWr1/RGp9rQtQdXVkRQQhEuApMEwHknunTYH/fyEe/RT05b0U6oY8Rrw T5YcctRM0gWcBQ1nwLC/dCQW4Jw+oTfaloKXBohSYRr9eHCgp2plnjV+5UmSaeA8R3oR ka8JKTtqWiRoi6ikrd1fxUyx+/S9BuWecInU/Dj/4Y/s6ACAh1LMC259JGukknbK426u 3MQWkp+qkNPWBJSJv3Unm5QvKnBiM4KhLkJXzN7gLYTHsJSETHOpRW2oL6tI6jLktY2n D058bN2M0/cn2p7/7jKHVAAZomEksm0Q5gxTGaGkfzjn7tn4VmFS+Ti5eUbtYLJttVQ8 46lg== X-Received: by 10.194.104.66 with SMTP id gc2mr21792wjb.75.1387973428784; Wed, 25 Dec 2013 04:10:28 -0800 (PST) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPSA id ey3sm38493282wib.4.2013.12.25.04.10.27 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 25 Dec 2013 04:10:28 -0800 (PST) Date: Wed, 25 Dec 2013 12:10:26 +0000 From: RW To: freebsd-questions@freebsd.org Subject: Re: setting encrypted password for a user Message-ID: <20131225121026.24d8950d@gumby.homeunix.com> In-Reply-To: <1387876980.48187.YahooMailNeo@web165006.mail.bf1.yahoo.com> References: <1387690591.75236.YahooMailNeo@web165002.mail.bf1.yahoo.com> <79C9317F-84B9-4F8F-8D5F-4DE0B63ED056@fisglobal.com> <20131223005530.352d08fb@gumby.homeunix.com> <1FCEF95A-F37A-4A57-B3A8-AE67776749BE@fisglobal.com> <1387876980.48187.YahooMailNeo@web165006.mail.bf1.yahoo.com> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Dec 2013 12:10:30 -0000 On Tue, 24 Dec 2013 01:23:00 -0800 (PST) M. V. wrote: > Hi, > thank you for your answers, > > so if we can't set password by just having MD5, I have to change the > sender program to calculate and send hash of the passwords using > salt. thus: > - ...does anyone know how "salt" is being used in FreeBSD > crypt for encryption? is it a simple concatenation,etc or it's more > complex than that? The latter: http://svn.freebsd.org/base/head/lib/libcrypt/crypt-md5.c