Skip to content

joao-pinheiro/bloompass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bloom Filter Password Checker

Beware! PoC! Not to be used in production!

Implementation of a bloom filter available via API to check if a given password exists on a given blacklist.

Blacklists are text files with lowercase .txt extension, one password per line.

Details

The bloom filter is built with separate roaring bitmaps, one for each hashing type; Currently, murmur3 and fnv are used for hashing;

Usage

$ make
$ bin/bloompass -dir data/

(wait until "Start API Server" appears)

JSON API

The API only supports SEARCH method.

$ curl --header "Content-Type: application/json" \
  --request SEARCH \
  --data '{"password":"xyz"}' \
  http://localhost:3030/check

{"success":true,"exists":1}

Valid return codes for "exists":

code meaning
0 Does not exist in the blacklist
1 Exists in the blacklist

TODO

  • Debugging
  • Unit Tests
  • Performance improvements

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published