Skip to content

RS256 signature verification simply indicates "invalid signature" with small key size #578

Open
@BenjaminPelletier

Description

@BenjaminPelletier

I pasted in this JWT:

eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJ1c2VyMiIsImV4cCI6MzAwMDAwMDAwMCwiaXNzIjoiZHVtbXkiLCJzY29wZSI6Im15c2NvcGUiLCJzdWIiOiJ1c2VyMSJ9.JWQKMNxbQIrJdRRk9hz7bg0SwlMrBxJWiy8TMKi0p7XeZeuH_l2tkGey2ZGXXa4Mxju6ZFJz6muf1EZGtpNoHOeejQ-38GOqmPjPFbRBslgzjmH-DZny1dF1TYsX5_oJLsz_qQMDDuw9TTa9eahlTEF3xEGzg81W9GvQqxDODw4

...then I pasted this text into the Public Key text box:

-----BEGIN PUBLIC KEY-----
MIGeMA0GCSqGSIb3DQEBAQUAA4GMADCBiAKBgHkNtpy3GB0YTCl2VCCd22i0rJwI
GBSazD4QRKvH6rch0IP4igb+02r7t0X//tuj0VbwtJz3cEICP8OGSqrdTSCGj5Y0
3Oa2gPkx/0c0V8D0eSXS/CUC0qrYHnAGLqko7eW87HW0rh7nnl2bB4Lu+R8fOmQt
5frCJ5eTkzwK5YczAgMBAAE=
-----END PUBLIC KEY-----

...and the page indicates that the signature is not valid. However, the signature is valid as verified with https://dinochiesa.github.io/jwt/, pyjwt, and github.com/golang-jwt/jwt.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions