Skip to content
Novus Examples
htpasswd208 B

htpasswd (HTTP Basic Auth)

An Apache/nginx .htpasswd file with two users hashed using the {SHA} scheme (Base64 SHA-1) — the sample passwords are documented in the file, for testing Basic-Auth credential parsers and hash identification.

Preview — first 5 lineshtpasswd
# .htpasswd - HTTP Basic Auth (sample fixture, {SHA} scheme).
# Passwords: webadmin -> 'sample-password',  guest -> 'guest'.
webadmin:{SHA}OYMbMU6qBWMrDpAqYkJkju/WZI0=
guest:{SHA}NWdeaPS1r3uZXZIFrQ/EOELxZFA=

Specifications

Format
Apache htpasswd
Scheme
{SHA} (base64 sha1)
Users
2
Passwords
documented in the file
Sample Only
true

What is a .htpasswd file?

An .htpasswd file stores usernames and hashed passwords for HTTP Basic Authentication, one user per line as user:hash. The hash is typically bcrypt, Apache MD5 (apr1), or SHA — never plaintext. Apache and nginx read it to guard a directory or route.

How to use this file

Use an example .htpasswd to test Basic-Auth credential parsers, password-hash identification, and web-server auth configuration. The sample credentials are documented and for testing only.

How to use this file for testing

“htpasswd (HTTP Basic Auth)” is a deterministic Novus Examples fixture for Certificate & key testing, Editor testing. Self-signed X.509 certificates (PEM, CRT, DER), a CSR, RSA and Ed25519 keys, an SSH public key, a PKCS#12 bundle, and an htpasswd file — all published sample-only material, for testing certificate parsers, TLS tooling, keystore importers, and PEM/DER decoders.

Documented properties for this file: Apache htpasswd. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Data fixtures document their exact quirks — delimiters, encodings, null handling, schema, and row counts — in the spec table. Point your parser or importer at the file and assert it handles the documented edge cases; clean and deliberately-messy siblings make before/after diffs straightforward.

This is a published, sample-only certificate/key. Parse it, verify the chain or signature, and test PEM↔DER conversion — never deploy it anywhere real.

Generated by generation/pki_security.py. Free for any use, no attribution required — license.