Live data from Hacker News

Hashcat and oclHashcat have gone open source

hashcat.net

1–10 of 20 posts

Re: Hashcat and oclHashcat have gone open source

#3
post #2

Oh, this switch https://github.com/hashcat/hashcat/blob/master/src/engine.c#...

What is the purpose of this, exactly? I assume it has to be some sort of performance optimization.

Hashcat probably isn't the best model for clean code, since its primary goal is to squeeze every drop of performance it can get.

Re: Hashcat and oclHashcat have gone open source

#5
post #3
post #2

Oh, this switch https://github.com/hashcat/hashcat/blob/master/src/engine.c#...

What is the purpose of this, exactly? I assume it has to be some sort of performance optimization. Hashcat probably isn't the best model for clean code, since its primary goal is to squeeze every drop of performance it can get.

It's a hardcoded map of int to string. That's a fairly reasonable way of doing it in vanilla C. How efficient it actually is is down to your compiler. And some compilers impose maximum limits on the size of `case` statements..

An alternative would be a precomputed hash table, similar to what `gperf` does. Requires more work in the build system though.

Re: Hashcat and oclHashcat have gone open source

#6
post #5
post #3

Earlier quoted context omitted.

What is the purpose of this, exactly? I assume it has to be some sort of performance optimization. Hashcat probably isn't the best model for clean code, since its primary goal is to squeeze every drop of performance it can get.

It's a hardcoded map of int to string. That's a fairly reasonable way of doing it in vanilla C. How efficient it actually is is down to your compiler. And some compilers impose maximum limits on the size of `case` statements.. An alternative would be a precomputed hash table, similar to what `gperf` does. Requires more work in the build system though.

Besides the curious length of the switch, I'm not seeing anything particularly 'bad' about this code .. sort of left wondering what the big deal is? This is perfectly reasonable code.

Re: Hashcat and oclHashcat have gone open source

#8
post #7

I've tried hashcat before, but does anyone know if oclHashcat works on Intel GPUs? Specifically the Iris Pro 5200?

If you're seriously interested in GPU acceleration, any reason not to spend $150 on a GTX 950 and get ~5x the performance of your Iris Pro 5200?

Re: Hashcat and oclHashcat have gone open source

#9
post #7

I've tried hashcat before, but does anyone know if oclHashcat works on Intel GPUs? Specifically the Iris Pro 5200?

I assume the OCL means OpenCL, in which case yes, Intel OpenCL support is very good (figures, since they have no GPGPU api of their own).
Post reply on HN