Qhov Sib txawv ntawm Hashing thiab Encrypting

Qhov Sib txawv ntawm Hashing thiab Encrypting
Qhov Sib txawv ntawm Hashing thiab Encrypting

Video: Qhov Sib txawv ntawm Hashing thiab Encrypting

Video: Qhov Sib txawv ntawm Hashing thiab Encrypting
Video: Tus Tswv Tab Tom Khob Qhov Rooj: Koj Puas Hnov Nws Lub Suab? (1) (Ntsiab Lus Tseem Ceeb) 2024, Kaum ib hlis
Anonim

Hashing vs Encrypting

Cov txheej txheem ntawm kev hloov tus cwj pwm txoj hlua mus rau qhov luv luv luv luv nqi (hu ua hash values, hash codes, hash sums or checksums) uas sawv cev rau cov hlua qub hu ua hashing. Feem ntau, muaj nuj nqi yog siv los ua qhov kev hloov pauv no thiab nws hu ua hash function. Hashing yuav ua rau indexing thiab retrieving cov ntaub ntawv nyob rau hauv databases sai dua, txij li thaum searching lub luv luv, taag ntev hash tus nqi yuav sai dua nrhiav tus nqi qub. Encryption yog tus txheej txheem ntawm kev hloov cov ntaub ntawv rau hauv hom ntawv uas tsis tuaj yeem nkag siab los ntawm ob tog uas tsis tau tso cai pom cov ntaub ntawv. Hom ntawv tshiab no hu ua cov ntawv cipher. Hloov cov ntawv cipher-ntawv rov qab mus rau hom qub yog hu ua decryption.

Hashing yog dab tsi?

Hloov ib txoj hlua cim rau hauv tus nqi luv luv uas sawv cev rau txoj hlua qub yog hu ua hashing. Qhov kev hloov pauv no yog ua los ntawm hash muaj nuj nqi. Hashing tso cai rau indexing sai thiab retrieving ntawm cov ntaub ntawv los ntawm databases vim yog siv ib tug luv luv hash tus nqi tshaj tus nqi qub. Hashing kuj tseem siv rau hauv encryption algorithms rau encryption thiab decryption ntawm cov kos npe digital. Hashing yog ib txoj hauv kev ua haujlwm thiab tus nqi qub tsis tuaj yeem rov qab los ntawm tus nqi hash. Tsis tas li ntawd, hashing yuav tsum tsis txhob tsim tib tus nqi hash rau ob qhov sib txawv ntawm qhov tseem ceeb. Qee qhov yooj yim thiab feem ntau siv hashing txoj kev yog Division-remainder method, folding method thiab Radix transformation method.

Kev nkag mus yog dab tsi?

Hloov cov ntaub ntawv rau hauv hom ntawv (hu ua cipher-ntawv) uas tsis tuaj yeem nkag siab los ntawm ob tog uas tsis tso cai pom cov ntaub ntawv hu ua encrypting. Encrypting tau siv ntev. Txoj kev encrypting muaj ntau yam los ntawm txoj hauv kev yooj yim xws li hloov cov ntawv rau cov lej mus rau ntau txoj hauv kev xws li rov kho cov khoom hauv cov teeb liab siv lub computer algorithm. Tau txais cov ntaub ntawv qub los ntawm cov ntawv cipher-ntawv hu ua decryption thiab nws yuav tsum muaj tus yuam sij decryption kom raug. Tus yuam sij no tsuas yog muaj rau ob tog uas tau tso cai pom cov ntaub ntawv. Txoj kev encryption yog hu ua encryption muaj zog yog tias nws tsis tuaj yeem tawg yam tsis paub tus yuam sij decryption. Public key encryption yog ib txoj hauv kev encryption uas cov ntaub ntawv tau encrypted 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 sib xws.

Qhov txawv ntawm Hashing thiab Kev Nkag Nkag yog dab tsi?

Hloov cov kab cim rau hauv qhov luv luv luv luv tus nqi uas sawv cev rau txoj hlua qub yog hu ua hashing, thaum hloov cov ntaub ntawv rau hauv hom (hu ua cipher-ntawv) uas tsis tuaj yeem nkag siab los ntawm ob tog uas tsis tso cai pom. cov ntaub ntawv, hu ua encrypting. Txij li hashing yog ib txoj hauv kev ua haujlwm uas tus nqi qub tsis tuaj yeem rov qab los ntawm tus nqi hash, nws kuj yog siv rau kev encrypting. Message-digest hash functions (MD2, MD4, and MD5) yog siv los encrypt digital kos npe. Tab sis kev siv hashing tsis txwv rau encrypting. Hashing kuj tseem siv tau sai dua cov ntaub ntawv los ntawm cov ntaub ntawv. Tab sis cov haujlwm hash siv rau cov haujlwm no txawv ntawm ib leeg thiab yuav tsis ua haujlwm zoo yog tias sib pauv ntawm ob txoj haujlwm.

Pom zoo: