Symmetric Key Encryption vs Public Key Encryption
Cryptography yog kev kawm txog kev zais cov ntaub ntawv, thiab nws yog siv thaum sib txuas lus hauv qhov nruab nrab tsis ntseeg siab xws li internet, qhov twg cov ntaub ntawv yuav tsum tau tiv thaiv los ntawm lwm tus neeg thib peb. Niaj hnub nimno cryptography tsom mus rau kev tsim cov cryptographic algorithms uas tuaj yeem nkag mus rau cov ntaub ntawv kom nws nyuaj rau kev tawg los ntawm tus yeeb ncuab vim yog qhov nyuaj ntawm kev suav (yog li tsis tuaj yeem tawg los ntawm kev siv tswv yim). Encryption siv lub algorithm hu ua cipher los encrypt cov ntaub ntawv thiab nws tuaj yeem decrypted tsuas yog siv tus yuam sij tshwj xeeb. Cov ntaub ntawv encrypted yog hu ua ciphertext thiab cov txheej txheem ntawm kev tau txais cov ntaub ntawv qub (plaintext) los ntawm ciphertext hu ua decryption. Ob txoj kev siv encryption yog Symmetric Key Encryption thiab Public Key Encryption. Symmetric key cryptography suav nrog txoj hauv kev encryption, qhov twg ob tus xa thiab tus txais tau sib koom tib tus yuam sij siv los encrypt cov ntaub ntawv. Hauv Public key cryptography, ob qhov sib txawv tab sis cov yuam sij cuam tshuam txog lej raug siv.
Symmetric Key Encryption yog dab tsi?
In Symmetric Key Encryption (tseem hu ua tus yuam sij zais cia, tus yuam sij nkaus xwb, tus yuam sij sib koom, ib tus yuam sij lossis tus yuam sij ntiag tug encryption), ob tus xa thiab tus txais tau sib koom tib tus yuam sij siv rau ob qho tib si encryption thiab decryption ntawm cov ntaub ntawv. Qhov tseeb, ob tus yuam sij yuav zoo ib yam lossis tsis sib xws (piv txwv li muaj kev hloov pauv yooj yim heev uas yuav tsum tau mus ntawm ob). Hauv kev siv lub neej tiag tiag, ib qho zais cia tau qhia los ntawm ob lossis ntau lub tog neeg uas tuaj yeem siv rau kev saib xyuas tus kheej txuas rau kev sib txuas lus. AES (Advanced Encryption Standard) yog qhov nrov heev algorithm, uas belongs rau tsev neeg ntawm symmetric key encryption algorithms.
Public Key Encryption yog dab tsi?
Hauv Public Key Encryption, siv ob qhov sib txawv tab sis cov yuam sij cuam tshuam nrog lej. Public key encryption encrypts cov ntaub ntawv siv tus neeg tau txais kev pabcuam pej xeem tus yuam sij, thiab nws tsis tuaj yeem decrypted yam tsis siv tus yuam sij ntiag tug. Hauv lwm lo lus, koj xav tau ib tus yuam sij txhawm rau txhawm rau (encrypt cov ntawv dawb) thiab lwm tus yuam sij txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau nws koj yuav tsum xaiv tus lej tseem ceeb. Qhov tseem ceeb yog tias ib tus yuam sij tsis tuaj yeem siv rau qhov chaw ntawm lwm qhov. Nyob ntawm seb tus yuam sij twg raug luam tawm, pej xeem tus lej encryption tuaj yeem siv rau ob lub hom phiaj. Yog tias tus yuam sij kaw tau raug tshaj tawm rau pej xeem, ces qhov system no tuaj yeem siv los ntawm leej twg los xa cov kev sib txuas lus ntiag tug mus rau tus tuav ntawm tus yuam sij xauv. Yog tias nws yog lwm txoj hauv kev, lub kaw lus ua rau nws muaj peev xwm txheeb xyuas cov ntaub ntawv kaw los ntawm tus tswv. Public key encryption yog asymmetric key algorithm. Tab sis tsuas yog qee qhov asymmetric tseem ceeb algorithms muaj cov cuab yeej tshwj xeeb ntawm kev tsis tuaj yeem nthuav tawm ib qho tseem ceeb nrog kev paub ntawm lwm tus. Yog li, cov asymmetric tseem ceeb algorithms nrog cov cuab yeej tshwj xeeb no hu ua pej xeem tus lej encryption algorithms.
Qhov txawv ntawm Symmetric Key Encryption thiab Public Key Encryption yog dab tsi?
Qhov sib txawv ntawm qhov sib txawv ntawm qhov tseem ceeb encryption thiab pej xeem tus yuam sij encryption yog qhov tseeb tias symmetric key encryption siv tib yam (private, zais cia) tus yuam sij rau encryption / decryption, thaum pej xeem key encryption siv ob qho tib si pej xeem thiab tus yuam sij ntiag tug. Ob tog yuav tsum paub tus yuam sij hauv symmetric key encryption, thaum tsis muaj qhov yuav tsum tau muaj rau pej xeem key encryption. Tsuas yog, ob qho tib si ntawm tus yuam sij yog paub los ntawm ob tog hauv pej xeem tus lej encryption. Vim tias qhov no tshem tawm qhov xav tau los qhia koj tus lej ntiag tug (raws li hauv kev sib xyaw qhov tseem ceeb encryption) thiab qhov kev pheej hmoo ntawm kev muaj kev cuam tshuam, pej xeem tus lej encryption tuaj yeem suav tias muaj kev nyab xeeb dua hauv qhov no.
Tab sis qhov tsis zoo ntawm pej xeem tus yuam sij encryption yog tias nws qeeb qeeb ntau zaus dua li qhov tseem ceeb encryption. Yog li, symmetric key encryption tej zaum yuav zoo dua rau encrypting ntau cov ntaub ntawv. Tsis tas li ntawd, pej xeem tus yuam sij encryption algorithms yuav tsum siv tus yuam sij sib piv uas muaj zog dua li qhov sib txawv ntawm tus yuam sij encryption kom ua tiav tib lub zog (rau qhov yooj yim vim li cas ib tus yuam sij tau tshaj tawm hauv pej xeem tus yuam sij cryptography).