Decoding JWT tokens without the secret -


i created token private key jwt, when try decode on http://kjur.github.io/jsjws/tool_jwt.html, found token can decoded without key given. correct jwt token signing? how keep token decoded without key?

there 2 ways in public/private keys can used jwt: signing , encryption.

if use private key signing, allows recipient identify sender of jwt , integrity of message not hide contents others (confidentiality). note sender's private key used sign jwt , produce json web signature (jws) object. apparently applies jwt you're looking at.

when using public key encryption can used hide content intended recipient. result json web encryption object. note public key of recipient used encrypt jwt. apparently you're looking for.

see: http://jose.readthedocs.org/en/latest/


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -