5 ms·
I ran it against some JWTs produced by one of my systems and it reported success. The secret it gave was about 5 characters in length. The secret we actually us
by scandox 10y ago
I ran it against some JWTs produced by one of my systems and it reported success. The secret it gave was about 5 characters in length. The secret we actually use is 64 characters in length.
- porpoisemonkey 10y agoIf you sign a JWT with the 5 character secret does it generate a token that you can verify with the 64 character secret? I'm wondering if it could be a key collision.
- scandox 10y agoI couldn't no. Made sure I was using everything the same, but I couldn't determine any relationship between original secret and one produced by program. However contrary to my original statement it turned out secret in use was actually only 30 characters long. I've passed on more detailed info to OP.
- porpoisemonkey 10y agoThanks for checking. > However contrary to my original statement it turned out secret in use was actually only 30 characters long. I'm guessing it's 32 characters long? (256 bits) That matches to the spec and is a good key - as referenced in other threads anything longer is mostly a waste as the key input gets hashed down to a fixed size.
- brendanrius 10y agoIf it is not sensitive information, I would be curious to know the JWT you tested with, the key used, and the key that program found
- deleted 10y ago[deleted]
- scandox 10y agoSent you an email on this. Sorry for slow response.