pyjwt icon indicating copy to clipboard operation
pyjwt copied to clipboard

give a way to not raise error if key type not correct, just do the base64.

Open XenoAmess opened this issue 3 years ago • 7 comments

in algorithm.py

        if any(string_value in key for string_value in invalid_strings):
            raise InvalidKeyError(
                "The specified key is an asymmetric key or x509 certificate and"
                " should not be used as an HMAC secret."
            )

Well, quite some of the people use this lib to attack something so we need it not throw error.

Maybe an error logging is a better choice?

related materials : https://medium.com/101-writeups/hacking-json-web-token-jwt-233fe6c862e6

XenoAmess avatar Mar 21 '21 19:03 XenoAmess

pyJWT==1.7.1 can be used

fenchu avatar Mar 31 '21 10:03 fenchu

pyJWT==1.7.1 can be used

Well, using an older version?

Maybe it can work but I don't think it be a right way to solve this .

XenoAmess avatar Mar 31 '21 16:03 XenoAmess

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar May 24 '22 02:05 github-actions[bot]

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

comment

XenoAmess avatar May 24 '22 20:05 XenoAmess

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jul 24 '22 02:07 github-actions[bot]

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

comment

XenoAmess avatar Jul 24 '22 07:07 XenoAmess

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Sep 23 '22 02:09 github-actions[bot]

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

comment

XenoAmess avatar Sep 24 '22 00:09 XenoAmess

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Nov 24 '22 02:11 github-actions[bot]

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jan 31 '23 02:01 github-actions[bot]

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Apr 12 '23 01:04 github-actions[bot]