PWQFILTER(1) | General Commands Manual | PWQFILTER(1) |
pwqfilter
— Manage
binary passphrase filter files
pwqfilter [options] |
The pwqfilter
program searches, creates,
or updates binary passphrase filter files, which can also be used with
pwqcheck(1) and pam_passwdqc(8). Input
and/or output binary filter files are specified via their corresponding
command-line options, whereas passphrases to look up or add, or their
hashes, are read from standard input.
pwqfilter
works on arbitrary plain text
strings or hex-encoded hashes, and thus can also be reused in lieu of
grep(1) for many purposes unrelated to passphrases and
security.
For the binary filters, pwqfilter
and thus
the rest of passwdqc currently use an improved cuckoo filter, which is a
probabilistic data structure. Occasional false positives are possible (fewer
than 1 in a billion), but false negatives are not.
--lookup
--status
--create=CAPACITY
The currently implemented cuckoo filter has a typical maximum load of around 98% (as long as there are no duplicate inputs and the hashes are unbiased, or less otherwise). The specified CAPACITY should thus be higher than the maximum expected number of entries by at least 2.04%.
--insert
--test-fp-rate
These can be used with --create
or
--insert
.
--optimize-fp-rate
--optimize-fp-rate-at-high-load
-f FILE
,
--filter=FILE
-o FILE
,
--output=FILE
--pre-hashed
This option is later implied for further actions on filters
created with it specified and no --hash-*
,
because pwqfilter
has no way to know what hash
type such filters use.
--hash-md4
When used with --pre-hashed
, specify
that the pre-hashing was done with MD4.
Cuckoo filters' use of a hash function is non-cryptographic, hence MD4's otherwise inadequate cryptographic security is irrelevant.
--hash-ntlm-cp1252
These are similar to those of grep(1).
When looking up against an existing filter,
pwqfilter
exits with 0 if selected plaintexts or
hashes are found, 1 if not found, or 2 on error. These exit codes are
compatible with those of grep(1). In other modes,
pwqfilter
exits with 0 on success and 2 on
error.
grep(1), pwqcheck(1), passwdqc.conf(5), pam_passwdqc(8).
https://www.openwall.com/passwdqc/
pwqfilter
and this manual page were
written by Solar Designer.
January 25, 2021 | Openwall Project |