Views
No views yet
1# Make sure git-xet is installed (https://hf.co/docs/hub/git-xet)
2git xet install
3
4git clone https://huggingface.co/sw241395/bloom-filter-hash1tar -xzvf /path/to/filters.tar.gz
21from bloom_filter_hash import break_hash
2
3password = break_hash(
4 'fb8e20fc2e4c3f248c60c39bd652f3c1347298bb977b8b4d5903b85055620603',
5 'sha256',
6 path_to_filters="/path/to/dir/containing/unzipped/filters/"
7)
8print(password)metadata.json provided within the gzipped filters../sha256/2.tar.gz
./sha256/3.tar.gz
./sha256/4.tar.gz
./sha256/5.tar.gz
export LEN=6; uv run bloom-hash train "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" $LEN --hash-alg sha256; cd ./pretrained_filters/sha256; tar -I 'gzip -9' -cvf $LEN.tar.gz $LEN; rm -rf $LEN; cd ../../export LEN=7; uv run bloom-hash train "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" $LEN --hash-alg sha256; cd ./pretrained_filters/sha256; tar -I 'gzip -9' -cvf $LEN.tar.gz $LEN; rm -rf $LEN; cd ../../export LEN=8; uv run bloom-hash train "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" $LEN --hash-alg sha256; cd ./pretrained_filters/sha256; tar -I 'gzip -9' -cvf $LEN.tar.gz $LEN; rm -rf $LEN; cd ../../