DEV Community

Long Ngo
Long Ngo

Posted on

Chuw Vidf Nam sogp sogp 4.0 (Cvnss4.0) zujx goc nhinl mas hoaj

Wujk das sagj cheb ra cakj mas hoaj Caesar thuj vir lal vir hozl deb Julius Caesar. Cis thadf nayl das dush fat trilq vaol kozz namo 100 Trusx Cogy wyly. Hozl deb Caesar das zugl noj deq guiv nhugw mehf lehf qan trogr cho nhugw tuzx sis treny chilb truzk. Zo doj, neub bonr jach coj batx dush wujk tryld tin thil cugs kogy theq docr val hiwq dush noif zugp cuaz bucx thuo mas hoaj doj.

Cilb thucx nayl thatf suh ratb huuw ikj val dush ap zugr cho toix wayl homy nay. Nhiwd wujk cho ragk, Cvnss4.0 jogb chuw mas hoaj hono.

1. Neny hiwq ros ba thadf wuw Hashing, Encryption, Encoding

Hash lal motf chujg dush taor ra thogy qa motf thadf tolj, deq baoz vef tihj toll venr cuaz zuw liwf. Diwd dach bidf lal hogy theq layb dush jaj trir daud vaol sau ki chylq doiq.

Vd: user -> pass -> server [salted password -> hash] = zatabase. Neub kopx lehf user moix try capf dush.

Encryption lal qaj trihl chylq doiq zuw liwf thahl motf dihr zagr kogy theq docr dush deq juw an toll val baoz matf cho chugj, chiz nhugw wujk dush yz qyld moix coj theq daoz wush noj.

Vd: Blockchain ses coj “Public cey” val “Private cey”. Ki zuw liwf dush guiv qa Https, noj ses dush mas hoaj bagk public cey, koaj nayl dush luuo truw trogp trihl zydf. Private cey chiz beny nhanf zuw liwf sov huuw val faiz dush juw bij matf. Qaj trihl nayl lal Ssl handshake – xac thuch server ki connecting voix client, symmetric encryption ses damz nhanf visf mas hoaj zuw liwf.

Encoding lal motf qaj trihl thay doiq zuw liwf sagp motf dihr zagr moix thogy qa motf lush dod coj sanw, cogy kai. Kogy iwy caud koaj chiz cand “banr hocr noj, bidb, hiwq” lal das mas hoaj roid tuh mihl jaiz mas noj. Deq damz baoz zuw liwf dush toll venr val coj theq dush suv zugr boiv nhiwd hef thogb thil chiz cand toib thiwq 2 wujk hash motf nhomj wujk hiwq bidb ved noj. Wyly lij nayl cugs zuah treny motf vij zur dono janz thuzk thayb trogp Cntt nhuo cac thadf tolj cho encoding: Base64, wojl ra coj Ascii, Unicode, Url Encoding…

Vij zur: Matf mas Caesar lal motf zagr matf mas thay theb, trogp doj moig cij tuh ov vano banz ban daud ses dush thay theb bagk motf cij tuh kac, coj vir trij cakj noj motf kozz xac dihr trogp bagz chuw caij. Neub chugj ta chylq moig chuw caij theo ba vir trij sagp beny faiz, thil moig chuw caij trogp vano banz ros gocb cuaz chugj ta ses dush thay theb bagk motf chuw caij sau noj ba vir trij beny faiz.

Chagv hanr, voix vano banz “Hello World” bagk cakj suv zugr zikr chylq sagp faiz lal 3, chuw H ses dush thay theb bagk C, E ses dush thay theb bagk H,... Val thogy diff dush mas hoaj cujb cugl cho Hello World ses lal Koor Zruog. Banr coj theq thayb thogy diff nayl nhinl nhuo: voy wias, faiz kogy? Dayy lal chihj ij wias cuaz visf mas hoaj, bilb motf vano banz ros docr dush bagk matx thuzk thahl motf vano banz voy wias trogp matx con wujk nhugo dagk sau doj tuzv chugk voy wias lair coj ij wias qan trogr tyl theo mucr dikj suv zugr lal jil.

2. Hiwq Cvnss4.0 dono janz nhuo Encoding

Cvnss4.0 lal hiwq motf cakj dono janz thil noj lal Encoding coj theq hihl zugp nhuo banr hocr Matf mas Caesar. Visf nayl ratb qan trogr vil mas hoaj coj vai trol qan trogr trogp jao zikr dilf tuv deq damz baoz dof baoz matf, toll venr cuaz thogy tin ki tryld treny magr. Hays thuv tuzv tuzh cac banr mulb ceq motf cauy chylf bij matf cho wujk banr thany cuaz mihl. Deq baoz matf cauy chylf rizy tuo kogy bir lof ra wojl banr ses cand zugl denb Cvnss4.0

Cugs jogb nhuo cac lojr matf mas thay theb kac, Cvnss4.0 coj vez jogb ij tuzv matf mas Caesar banr coj wis vayf kogy? Banr hays coj toiy bidb ij cilb cuaz mihl! Cagl timl hiwq sauy ved Cvnss4.0 banr ses timl thayb nhiwd diwd thuj vir kogy chiz lal con chuw val wony wuw dauy nhej!

Top comments (0)