Article View: news.software.nntp
Article #86933Re: creating usernames and passwords
From: Julien ÉLIE
Date: Mon, 31 Aug 2015 19:45
Date: Mon, 31 Aug 2015 19:45
25 lines
1948 bytes
1948 bytes
Hi Paul,
>> Remember that in another thread, you gave "LI" as a parameter:
>> perl -e 'print "user:".crypt("pass", "LI")."\n";'
>
> Forgive the silly question... so do I need to run both bits of code
> before saving the user:password in to a file ... or do they both do the
> same job but just using different approaches?
They do the same job.
htpasswd uses two random chars whereas the above perl command with
crypt() explicitly gives the first two chars.
The encrypted password does not change for two given first chars.
> I figured I only needed to invoke htpasswd -nbd user pass - correct?
Yes.
--
Julien ÉLIE
« Tout est dans tout, et réciproquement. » (Pierre Dac)
Technical Details
Message-ID:
<ms2as0$s2i$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<mrtqom$rj1$2@news.bbs.geek.nz> <mruu2c$49d$1@news.trigofacile.com> <ms11cr$j7d$3@news.bbs.geek.nz>Show Full Headers
Complete Article Headers
Message-ID: <ms2as0$s2i$1@news.trigofacile.com> Subject: Re: creating usernames and passwords Date: Mon, 31 Aug 2015 21:45:04 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <mrtqom$rj1$2@news.bbs.geek.nz> <mruu2c$49d$1@news.trigofacile.com> <ms11cr$j7d$3@news.bbs.geek.nz> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 31 Aug 2015 19:45:04 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="aaubervilliers-651-1-145-42.w86-212.abo.wanadoo.fr:86.212.128.42"; logging-data="28754"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: <ms11cr$j7d$3@news.bbs.geek.nz> X-Received-Body-CRC: 133379647 X-Received-Bytes: 1982