Yus thiab Yus Das yog dab tsi?
Yus thiab Yus Das yog dab tsi?

Video: Yus thiab Yus Das yog dab tsi?

Video: Yus thiab Yus Das yog dab tsi?
Video: yog hmoov dab tsi. Zoo Xyooj (cover) 2024, Kaum ib hlis
Anonim

A JWS yog siv los kos npe rau daim ntawv thov, a JWE yog siv los xa cov ntaub ntawv rhiab heev. Yog tias koj xav siv qhov system authentication, ces JWS yuav tsum tau siv los txheeb xyuas qhov tseeb ntawm kev thov. Koj tseem tuaj yeem encrypt koj li JWS siv JWE yog tias qee qhov kev thov hauv koj JWS muaj cov ntaub ntawv rhiab heev.

Ib yam li ntawd, tej zaum koj yuav nug tias, Yehauvas yog dabtsi?

JSON Web Signature (ua luv JWS ) yog IETF-tsim qauv [RFC7515] rau kev kos npe rau cov ntaub ntawv tsis txaus ntseeg. Qhov no yog siv los ua lub hauv paus rau ntau lub vev xaib thev naus laus zis suav nrog JSON Web Token.

Ib sab saum toj no, puas yog JWT encrypted? Tsis muaj cov ntaub ntawv rhiab hauv a JWT . Cov tokens no feem ntau tau kos npe los tiv thaiv kev tswj hwm (tsis yog encrypted ) yog li cov ntaub ntawv hauv cov lus thov tuaj yeem txiav txim siab tau yooj yim thiab nyeem. Yog tias koj xav tau khaws cov ntaub ntawv tseem ceeb hauv a JWT , mus saib JSON Web Encryption (JWE).

Ib yam li ntawd, Jws token yog dab tsi?

JSON Web Token (JWT) yog ib txoj hauv kev los sawv cev cov lus thov kom hloov pauv ntawm ob tog. Cov ntawv thov hauv JWT raug encoded ua JSON cov khoom uas tau kos npe digitally siv JSON Web Kos Npe ( JWS ) thiab/los yog encrypted siv JSON Web Encryption (JWE).

Dab tsi yog kos npe rau JWT?

JSON Web Token ( JWT ) yog tus qauv qhib (RFC 7519) uas txhais tau hais tias txoj kev sib cog lus thiab tus kheej muaj nyob rau hauv kev ruaj ntseg xa cov ntaub ntawv ntawm ob tog raws li cov khoom JSON. JWTs tuaj yeem yog kos npe siv ib qho zais cia (nrog HMAC algorithm) lossis ib khub tseem ceeb ntawm pej xeem / ntiag tug siv RSA lossis ECDSA.

Pom zoo: