X5c hauv JWT yog dab tsi?
X5c hauv JWT yog dab tsi?

Video: X5c hauv JWT yog dab tsi?

Video: X5c hauv JWT yog dab tsi?
Video: Запомни эту хитрость по доработке перфораторы для ровного сверления 2024, Hlis ntuj nqeg
Anonim

Cov " x5c ua " (X.509 daim ntawv pov thawj saw) Header Parameter muaj X.509 daim ntawv pov thawj pej xeem tseem ceeb lossis daim ntawv pov thawj saw [RFC5280] sib raug rau tus yuam sij siv los kos npe rau JWS. Daim ntawv pov thawj lossis daim ntawv pov thawj saw yog sawv cev raws li JSON array ntawm Jones, thiab al.

Yog li ntawd, x5t yog dab tsi hauv JWT?

Cov " x5t t " (x. 509 daim ntawv pov thawj thumbprint) header parameter muab base64url encoded SHA-256 thumbprint (a.k.a. digest) ntawm DER encoding ntawm X. 509 daim ntawv pov thawj uas tuaj yeem siv los ua kom tau raws li daim ntawv pov thawj. No header parameter yog OPTIONAL.

Ib sab saum toj no, JWT token yog dab tsi thiab nws ua haujlwm li cas? 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. Kos npe cov cim tuaj yeem txheeb xyuas qhov ncaj ncees ntawm cov lus thov uas muaj nyob hauv nws, thaum encrypted cov cim zais cov lus thov los ntawm lwm tog neeg.

Hauv qhov no, rs256 JWT ua haujlwm li cas?

Tus txais ntawm lub JWT Tom qab ntawd yuav: nqa lub header thiab lub payload, thiab hash txhua yam nrog SHA-256. decrypt tus kos npe siv tus yuam sij pej xeem, thiab tau txais qhov kos npe hash.

Vim li cas JWT tsis ruaj ntseg?

Cov ntsiab lus hauv json web token ( JWT ) yog tsis yog nyob rau hauv ruaj ntseg , tab sis muaj ib tug built-in feature rau kev txheeb xyuas token authenticity. Lub asymmetric xwm ntawm pej xeem tus yuam sij cryptography ua JWT kos npe pov thawj tau. Tus yuam sij pej xeem txheeb xyuas a JWT tau kos npe los ntawm nws tus yuam sij ntiag tug.

Pom zoo: