Article View: news.software.nntp
Article #90069Re: Modern encryption for INN's ckpasswd or equivalent options?
From: Matija Nalis
Date: Sat, 04 Feb 2023 13:06
Date: Sat, 04 Feb 2023 13:06
31 lines
2492 bytes
2492 bytes
On Sat, 4 Feb 2023 11:14:21 +0100, Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> wrote:
> In case OpenSSL is not installed on your server, you can also use
> the following Perl command which does the same job:
>
> % perl -le "print crypt('pass', '\$5\$UIhtJSBOaC0Ap3Vk\$');"
> $5$UIhtJSBOaC0Ap3Vk$nbKgmykshoQ2HmvA3s/nI.X4uhhNHBKTYhBS3pYLjJ6
>
> As Perl makes use of crypt(3), you have access to all available
> hashing schemes on your systems (like yescript, if supported). Make
> sure to use a random salt.
>
> % perl -le "print crypt('pass', '\$y\$j9T\$YourSalt\$');"
> $y$j9T$YourSalt$X4tB48vKNDT6mK0vNOc7ppKPWvEsyMg5LwoQfO50r2A
>
For perl however, it is not really clear to beginners) what is the salt
which must be changed/RANDOM, and what are the fixed elements, especially as
one example users random string, and another human-readable version. (and
yescript example having extra unexplained paramtered 'j9T')
I'd suggest:
- changing actual salt in *both* perl examples to "YourRandomSalt"
- clarifiying in documentation that only "pass" (your password) and
"YourRandomSalt" (random string which should be different for EACH
user) parts of the commands should be changed, and all the rest be left
as-is.
--
Opinions above are GNU-copylefted.
Technical Details
Message-ID:
<slrnttsm2q.48k.mnalis-news@eagle102.home.lan>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<tr3s1v$peb$1@nnrp.usenet.blueworldhosting.com> <87sffutqdx.fsf@hope.eyrie.org> <tr3tns$qg3$1@nnrp.usenet.blueworldhosting.com> <87k016tops.fsf@hope.eyrie.org> <tr4tmr$224f$1@nnrp.usenet.blueworldhosting.com> <trlb5t$k5qt$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnttsm2q.48k.mnalis-news@eagle102.home.lan> Subject: Re: Modern encryption for INN's ckpasswd or equivalent options? Date: Sat, 4 Feb 2023 14:06:34 +0100 From: Matija Nalis <mnalis-news@voyager.hr> References: <tr3s1v$peb$1@nnrp.usenet.blueworldhosting.com> <87sffutqdx.fsf@hope.eyrie.org> <tr3tns$qg3$1@nnrp.usenet.blueworldhosting.com> <87k016tops.fsf@hope.eyrie.org> <tr4tmr$224f$1@nnrp.usenet.blueworldhosting.com> <trlb5t$k5qt$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.nntp Organization: CARNet, Croatia Sender: mnalis@public.hr Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Info: news1.carnet.hr; posting-host="2a05:4f46:327:2700:51e6:ac:9dda:4c3a"; logging-data="839153"; mail-complaints-to="abuse@CARNet.hr" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:qQLB/gAiN5yOZrE/KeEeoWZoeZU=