🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90023

Re: Modern encryption for INN's ckpasswd or equivalent options?

#90023
From: Jesse Rehmer
Date: Sat, 28 Jan 2023 19:40
32 lines
2836 bytes
On Jan 28, 2023 at 1:23:22 PM CST, "Russ Allbery" <eagle@eyrie.org> wrote:

> Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:
> 
>> Does anyone have an example perl_auth program I could reference that
>> supports more modern encrypted storage of passwords?
> 
>> I have a small set of users and do not want to use PAM or system
>> auth. The crypt implementation used by ckpasswd -f, is, well, extremely
>> old.
> 
> ckpasswd -f just uses crypt, so it will use as modern of a password
> hashing algorithm as your libc or libcrypt supports.  Generally this is
> configured by the prefix of the hashed password.  For example, on Linux,
> you can use hashes starting with $y$ to use yescrypt, which is about as
> modern as you could possibly want.
> 
> This is therefore entirely up to how you set the passwords in the file
> that you're pointing to with ckpasswd -f, which is a bit outside what INN
> deals with.  It's quite possible that htpasswd, for example, won't
> generate one of the newer hash types.

How can I tell what algorithms my library supports? I'm on FreeBSD 13 and in
the past was on Linux. I could never get ckpasswd to accept anything more than
"htpasswd -d" outputs, which on all of the operating sytems I've used outputs
the weakest possible encryption:

       -d     Use crypt() encryption for passwords. This is not supported by
              the httpd server on Windows and Netware. This algorithm limits
              the password length to 8 characters. This algorithm is insecure
              by today's standards. It used to be the default algorithm until
              version 2.2.17.
Technical Details
Message-ID: <tr3tns$qg3$1@nnrp.usenet.blueworldhosting.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
References: <tr3s1v$peb$1@nnrp.usenet.blueworldhosting.com> <87sffutqdx.fsf@hope.eyrie.org>

Show Full Headers
Complete Article Headers
Message-ID: <tr3tns$qg3$1@nnrp.usenet.blueworldhosting.com>
Subject: Re: Modern encryption for INN's ckpasswd or equivalent options?
Date: Sat, 28 Jan 2023 19:40:44 +0000
From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com>
References: <tr3s1v$peb$1@nnrp.usenet.blueworldhosting.com> <87sffutqdx.fsf@hope.eyrie.org>
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: BlueWorld Hosting Usenet (https://usenet.blueworldhosting.com)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 28 Jan 2023 19:40:44 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="27139"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:O/NnGQ+zu24xnSTDigMQXkbVltk= sha256:GDhy7aFir8rmAqbSPXQDtYF1FKDY98ipxdmLxx1Kp2U= sha1:Db/l3X4WAPuKgsC5aj08JFif58M= sha256:kbzy5x2hoKDZ7dbgL+1rWl9Dzah2nvegHazY0v1pVdk=
X-Usenapp: v1.26/d - Full License