Skip to content

Struggling with JWE decryption #390

@itsupply25

Description

@itsupply25

Hello,

I'm trying to decrypt an JWE Token. But I'm struggling.
I've got the JWE Token and a secret to decode. How is the correct usage of jose, to decode this?

header: "alg": "A256KW", "enc": "A256CBC-HS512", "typ": "JWT"

Example Token:
eyJhbGciOiJBMjU2S1ciLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIiwidHlwIjoiSldUIn0.8lk3HXEJ5uvApko4umGH1_rLhdl-x7d-81HeFCz8I-1idij5crpQ1tQR7vVCxFVqhRN0B99NHlbHfhiSWKY2gmzMqWgDt56u.WuietiLj1lZvezkBE1ZvrA.VXc4EJ2sjQYh5D3Jf_bANTcwPe8lddJs9KsID0ERHUeU18nP0Hc0pEae_L4s7R-bGQbLmfUfkQwxO7AI9e8s2WwEHLrk0oYWU_LEV-xvTu_M-WH2gfMExDHcf08tEw0gfZsAf_BxRmwh74Ng-voscfT5tA7u7MJb0lKvZwvB5f_94CuWMvmVoKlerASBA2uH6J3554ST1suhgnKmGdIPPOuy2lQaXK6c0h8BHsTEG38tFoMxfGcP8ZQGxUCpzEvxt-amVQOgydNFgg9uxOg1MYRTdbNB8brsLG106dL_RNBkzwEKKXs-_Z36PjyR_DrP044w1H_SOqyJcReC-rkTw5Kh9IQIDalqrPpvQblce9hjm_qDJjhobMH2DxZqejJ4cizkbkD6kRvRR716yy17lsTeWkUoIJmQgp9Y2b2wogU.qbFmjV7paINPxs1l5hUHo9uTUGMfAIwVtWcCKRqyva0

Decrypt symmetric key:
Vaguely-Fresh-Orbit-0354-0314-81

I wasted a lot of hours, on this. And also with lots of browsing the internet I do not make progress with this topic.

Thanks in advance for your help!

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions