LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

apgbfm

Manage bloom filters for password checking

TLDR

Create a new bloom filter from a dictionary file
$ apgbfm -f [filter.bf] -d [dictionary.txt]
copy
Create an empty bloom filter for a specific number of words
$ apgbfm -f [filter.bf] -n [50000]
copy
Check if a word exists in the filter
$ apgbfm -f [filter.bf] -c [password]
copy
Add a single word to an existing filter
$ apgbfm -f [filter.bf] -a [word]
copy
Add words from a dictionary file to an existing filter
$ apgbfm -f [filter.bf] -A [dictionary.txt]
copy
Display filter information
$ apgbfm -i [filter.bf]
copy

SYNOPSIS

apgbfm -f filter -n numofwords [-q] [-s]apgbfm -f filter -d dictfile [-q] [-s]apgbfm -f filter -a word [-q]apgbfm -f filter -A dictfile [-q]apgbfm -f filter -c word [-q]apgbfm -f filter -C dictfile [-q]apgbfm -i filterapgbfm [-v] [-h]

DESCRIPTION

apgbfm (APG Bloom Filter Manager) creates and manages bloom filters for the apg password generator. Bloom filters enable fast dictionary checking without loading entire dictionaries into memory. It uses SHA-1 as its hash function.This tool can be used standalone or with apg/apgd to avoid generating passwords that appear in common password dictionaries.

PARAMETERS

-f filter

Bloom filter filename to use
-n numofwords
Create new empty filter for the specified number of words
-d dictfile
Create new filter from dictionary file
-a word
Add a single word to the filter
-A dictfile
Add all words from dictionary file to the filter
-c word
Check if a word exists in the filter
-C dictfile
Check every word from dictionary file against the filter
-i filter
Display filter information
-s
Create filter in case-insensitive mode
-q
Quiet mode
-v
Print version information
-h
Print help information

INSTALL

sudo apt install apg
copy
sudo dnf install apg
copy
yay -S apg
copy
sudo apk add apg
copy
sudo zypper install apg
copy
nix profile install nixpkgs#apg
copy

CAVEATS

Bloom filters have false positives but no false negatives. A rejected password might not actually be in the dictionary, but an accepted one definitely isn't. Filter size affects accuracy.

HISTORY

apgbfm was created as a companion tool to apg, using bloom filters to efficiently check generated passwords against large dictionaries.

SEE ALSO

apg(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid