So, there we are: #swad has its second credentials checker module, using #password #files, partially #apache #htpasswd compatible (only #bcrypt, using #OpenBSD's code). 🥳

https://github.com/Zirias/swad/commit/385bc5286c607c7220067844c37bc5eb6cb6c18c

#C #coding

FileChecker: Check credentils against a file · Zirias/swad@385bc52

Add another credentials checker using a password file that's partially compatible with Apache's `.htpasswd` files.

GitHub

I need some advise: Is there a good portable and free (really free, not GPL!) #implementation of #bcrypt in #C around?

There's #OpenBSD source I could use, but integrating that would probably be quite a hassle...

Background: I want to start creating a second credential checker for #swad using files. And it probably makes sense to support a sane subset of #Apache's #htpasswd format here. Looking at the docs:
https://httpd.apache.org/docs/current/misc/password_encryptions.html
... the "sane subset" seems to be just bcrypt. *MAYBE* also this apache-specific flavor of "iterated" MD5, although that sounds a bit fishy ...

Password Formats - Apache HTTP Server Version 2.4

The open-source security / authentication stacks are great at the core of what they do.

... I still want to grab some of the devs who maintain them and shake 'em by the lapels for having really bad DevEx opinions.

Burned two hours this week failing to get basic auth working on a Docker registry instance because I wasn't properly binding the htpasswd file I set up. Time would have been cut in half if the log entry was "user not in the password file" instead of a generic "authentication failed." I'm sure someone was like "hurr durr you can't put that much detail in the logs, attackers could steal the logs and have so much info." Look... Fuck you, my (imaginary) guy, no attackers are gonna steal the logs because the service won't exist because I don't have enough debug info to stand it up in the first place.

#docker #auth #htpasswd #openssl

I like how dead simple it is to put an #icecast stream behind a basic #htpasswd login. A short authentication block unlocks a portion of the web interface that allows for the user management to happen entirely in the browser. #broadcast #livestream #radio #internetradio
Protéger par mot de passe l’accès à un dossier servi sur le web via le serveur web Apache.
https://www.grimoire-command.es/2022/lock_web_folder_with_htaccess.html #grimcom #htaccess #htpasswd robots.txt
Lock apache web folder with htaccess

Protéger par mot de passe l’accès à un dossier servi sur le web via le serveur web Apache. Hacking this requires to hack the Apache web server or the hosting machine and not "only" a web application. This keeps web crawlers away while a robots.txt file is just …

Grimoire-Command.es
[Outil] Générateur .htpasswd - Protéger un dossier avec un .htpasswd https://shaarli.husimo.fr/?kEhu4Q #htpasswd #http https://www.infowebmaster.fr/outils/crypter-htpasswd.php

Bei Kommandos, die ich nur ab und an verwende, bin ich mir selten ganz sicher. Zwei davon erläutere ich in diesem Eintrag um sie mir besser merken zu können.

https://depone.net/2019/10/11/merkzettel-fuer-die-kommandozeile/

DEPONE Netzgestaltung – Merkzettel für die Kommandozeile

Bei Kommandos, die ich nur ab und an verwende, bin ich mir selten ganz sicher. Zwei davon erläutere ich in diesem Eintrag um sie mir besser merken zu können.

DEPONE Netzgestaltung