KRB5-STRENGTH-WORDLIST(1) | krb5-strength | KRB5-STRENGTH-WORDLIST(1) |
krb5-strength-wordlist - Create a krb5-strength database from a word list
krb5-strength-wordlist [-am] [-c
output-cdb] [-l min-length]
[-L max-length] [-o output-wordlist] [-s
output-sqlite]
[-x exclude ...] wordlist
krb5-strength-wordlist converts a word list (a file containing one word per line) into a database that can be used by the krb5-strength plugin or heimdal-strength command for checking passwords. Two database formats are supported, with different features. CDB is more space-efficient and possibly faster, but supports checking passwords only against exact matches or simple transformations (removing small numbers of leading and trailing characters). SQLite creates a much larger database, but supports rejecting any password within edit distance one of a word in the word list.
CDB is a format invented by Dan Bernstein for fast, constant databases. The database is fixed during creation and cannot be changed without rebuilding it, and is optimized for very fast access. For cdb, the database generated by this program will have keys for each word in the word list and the constant 1 as the value.
SQLite stores the word list in a single table containing both each word and each word reversed. This allows the krb5-strength plugin or heimdal-strength command to reject passwords within edit distance one of any word in the word list. (Edit distance one means that the word list entry can be formed by changing a single character of the password, either by adding one character, removing one character, or changing one character to a different character.) However, the SQLite database will be much larger and lookups may be somewhat slower.
krb5-strength-wordlist takes one argument, the input word list file. Use the -c option to specify an output CDB file, -s to specify an output SQLite file, or -o to just filter the word list against the criteria given on the command line and generate a new word list. The input word list file does not have to be sorted. See the individual option descriptions for more information.
This option cannot be used with -o or -s.
The default is to not filter out any words for maximum length.
The default is not to filter out any words for minimum length.
This option cannot be used with -c or -s.
Using this option requires the DBI and DBD::SQLite Perl modules be installed.
This option cannot be used with -c or -o.
Russ Allbery <eagle@eyrie.org>
Copyright 2016 Russ Allbery <eagle@eyrie.org>
Copyright 2013, 2014 The Board of Trustees of the Leland Stanford Junior University
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
cdb(1), DBI, DBD::SQLite
The cdb file format is defined at <http://cr.yp.to/cdb.html>.
The current version of this program is available from its web page at <https://www.eyrie.org/~eagle/software/krb5-strength/> as part of the krb5-strength package.
2018-09-01 | 3.1 |