lmammino / jwt-cracker

Simple HS256, HS384 & HS512 JWT token brute force cracker.
https://lmammino.github.io/jwt-cracker/
MIT License
1.05k stars 165 forks source link

GPU acceleration #8

Open skalahonza opened 5 years ago

skalahonza commented 5 years ago

I think it would be totally cool the cracker would benefit from GPU. For example: http://gpu.rocks/

lmammino commented 5 years ago

Hello @skalahonza and thanks for submitting this to my attention.

The project looks pretty cool, but from a quick read at the docs, it seems to support only a subset of javascript when specifying the function to run in the gpu. This might make tricky a port of the code to the library.

Feel more than welcome to play with this if you have time, i'd happily look into merging a working PR.

Also, in case you didn't know, there's a distributed version of this tool called distributed-jwt-cracker.

wrightwriter commented 5 years ago

You could rewrite all the code in OpenGL if you wanted to. Not sure how youd keep a variable of where you are at during the operation tho.