Article View: news.software.nntp
Article #90025Re: Modern encryption for INN's ckpasswd or equivalent options?
From: Jesse Rehmer
Date: Sun, 29 Jan 2023 04:46
Date: Sun, 29 Jan 2023 04:46
29 lines
2252 bytes
2252 bytes
On Jan 28, 2023 at 1:59:27 PM CST, "Russ Allbery" <eagle@eyrie.org> wrote: > Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes: > >> How can I tell what algorithms my library supports? > > man 3 crypt should hopefully tell you what the available hash algorithms > are. You'll need something that writes the password file, though (or use > passwd to set a password for a system user and then copy and paste the > hash from /etc/shadow, which I've done in a pinch). > > https://man.freebsd.org/cgi/man.cgi?crypt(3) seems to imply nothing better > than SHA-512 is supported, which is a bit surprising. Auth works if I use the following for MD5: openssl passwd -1 -salt xyz somepassword Or the following for SHA512: openssl passwd -6 -salt xyz somepassword The hashes from "htpasswd -B" work as well. I suppose the MD5 implementation for htpasswd has some oddities as I cannot get that to work, but using openssl is just fine. Cheers, Jesse
Technical Details
Message-ID:
<tr4tmr$224f$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-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>Show Full Headers
Complete Article Headers
Message-ID: <tr4tmr$224f$1@nnrp.usenet.blueworldhosting.com> Subject: Re: Modern encryption for INN's ckpasswd or equivalent options? Date: Sun, 29 Jan 2023 04:46:19 +0000 From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com> 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> 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: Sun, 29 Jan 2023 04:46:19 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="67727"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Usenapp for MacOS Cancel-Lock: sha1:ofB7BD8zYXx5bfh0yqxD6kAzF3w= sha256:1T0OC9XYqm0H/tGkH/SCASWw4s912CnxIcqyRIUgiAw= sha1:8l5OVcTodCc8uABOggfXAUuUHGg= sha256:VhOJG97ujqcIOcEAOXBEX0X2zlhvMV0rQ8drK5n6cEU= X-Usenapp: v1.26/d - Full License