Code Monkey home page Code Monkey logo

Comments (12)

jarirajari avatar jarirajari commented on August 17, 2024 1

Hi, it works after two additional changes: where it reads "{print $$1}" there should be only one dollar sign.

Secondly, hibb default file name is not working:

# hibb
Loading Bloom filter from pwned-passwords-2.0.bloom...
open pwned-passwords-2.0.bloom: no such file or directory

But working with command "hibb -f pwned-passwords-2.0.bloom.gz". So default filename should be changed.

After that I got it working! Thank you!

from have-i-been-bloomed.

adewes avatar adewes commented on August 17, 2024

It seems there was a flag missing @jarirajari, I fixed that and also switched the bloom filter to the "official" version (I used my own fork while waiting for upstream changes). Should work now! Please close this if it does.

from have-i-been-bloomed.

jarirajari avatar jarirajari commented on August 17, 2024

Thanks for the quick reply! I removed hibb server, then updated the code and re-did make for tool and server. I noticed changes in the build phase but still I get the same error: "Invalid version bit (should be 1)" One thing though, I am still using golang 1.11 currently as rebuilding to 10GB images takes quite a while, but I am updating it to 1.13 in the Dockerfile. For this version I noticed error " go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src; " which I tackled with " export GO111MODULE="on" ". So to my eyes everything seems okay, but the error persists unfortunately.

from have-i-been-bloomed.

adewes avatar adewes commented on August 17, 2024

Yes go modules don't work by default in Go 1.11, so if possible update to the latest go version, it should then work.

from have-i-been-bloomed.

jarirajari avatar jarirajari commented on August 17, 2024

Switched to 1.13, verified with "go version", and did make again. I tried in many different ways, still the same error.

Another question, should I use "bloom" in /root/go/bin or the one that I installed from the Ubuntu repository?

from have-i-been-bloomed.

adewes avatar adewes commented on August 17, 2024

Don't use the Ubuntu version of Bloom, it is out of date. You need to install the most recent version from master, then it will work. Hibb uses the new Bloom version, the CLI tool you use is the old version, hence the file formats are not compatible.

from have-i-been-bloomed.

adewes avatar adewes commented on August 17, 2024

Does this work @jarirajari ?

from have-i-been-bloomed.

jarirajari avatar jarirajari commented on August 17, 2024

Hi sorry, didn't catch your reply and then I was away for a while. Switched to Go 1.15 and now using built bloom and hibb.
Redid everything from scratch and got exactly the same error response when executing hibb unfortunately.

from have-i-been-bloomed.

adewes avatar adewes commented on August 17, 2024

No worries! That's weird, maybe you still have an old bloom version in your path that is being used instead of the new one? Can you run the bloom tool (without any arguments) and tell me the version it displays?

from have-i-been-bloomed.

jarirajari avatar jarirajari commented on August 17, 2024
# bloom -v
Bloom Filter version 0.2.2

Procedure of setting up the image is in Dockerfile in https://github.com/jarirajari/hibp-bloomed-docker although in my tests I use test data (instead of real 10 GB data) as an input to the filter which seems to go okay.

from have-i-been-bloomed.

adewes avatar adewes commented on August 17, 2024

Hey @jarirajari, I found the issue (the hibb server assumed the Bloom filter would be uncompressed) and fixed it. I also improved the README and Makefile and added a test method that won't need to build the entire filter. Let me know if that works for you now!

from have-i-been-bloomed.

adewes avatar adewes commented on August 17, 2024

I fixed the filename. The two $$ are correct though, as Make would otherwise treat $1 as the value of variable 1 (which is undefined).

from have-i-been-bloomed.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.