I-DES noma i-DESede , i-algorithm yokhiye we-symmetric yokubethela idatha ye-elekthronikhi, ilandela I-DES(Izinga Lokubethelwa Kwedatha) futhi inikeza ukubethela okuvikeleke kakhulu kune-DES. I-DES yephula ukhiye onikezwe umsebenzisi ube okhiye abancane abathathu njenge-k1, k2, ne-k3. Umlayezo ubethelwa ngo-k1 kuqala, bese ubhalwa nge-k2 bese ubethelwa futhi nge-k3. Usayizi wokhiye we-DESede ungu-128 noma u-192 bit futhi uvimba usayizi ongu-64 bit. Kunezindlela ezimbili zokusebenza—Triple ECB (Electronic Code Book) kanye ne-Triple CBC (Cipher Block Chaining).
Ngezansi ithuluzi lamahhala eliku-inthanethi elihlinzeka ngokubethela kwe-DES kanye nokususa ukubethela ngezindlela ezimbili zokusebenza zanoma yimuphi umbhalo ongenalutho.
Noma yiliphi inani lokhiye oyimfihlo olifakayo, noma esilikhiqizayo aligcinwa kuleli sayithi, leli thuluzi linikezwa nge-HTTPS URL ukuze kuqinisekiswe ukuthi noma yibaphi okhiye abayimfihlo abanakwebiwa.
DES Ukubethela
- Ukukhetha Okubalulekile:I-DES isebenzisa okhiye abathathu, ngokuvamile ababizwa ngokuthi K1, k2, k3. Ukhiye ngamunye ungamabhithi angu-56 ubude, kodwa ngenxa yokulingana, usayizi wokhiye osebenzayo ungamabhithi angu-64 ukhiye ngamunye.
- Inqubo Yokubhala Ngemfihlo::
- Bethela nge-K1Ibhulokhi yombhalo ongenalutho iqale ibethelwe kusetshenziswa ukhiye wokuqala u-K1, okuholela kumbhalo we-ciphertext C1
- Khipha nge-K2:I-C1 bese isuswa ukubethela kusetshenziswa ukhiye wesibili u-K2, kukhiqizwe umphumela omaphakathi.
- Bethela nge-K3:Ekugcineni, umphumela omaphakathi uyabethelwa futhi kusetshenziswa ukhiye wesithathu u-K3 ukukhiqiza umbhalo wokugcina we-ciphertext C2.
I-DES Decryption
Ukususa ukubethela ku-DES empeleni kuwukuhlanekezela ukubethela:
- Inqubo yokususa ukubethela:
- Khipha nge-K3I-ciphertext C2 isuswa ukubethela kusetshenziswa ukhiye wesithathu u-K3 ukuze kutholwe umphumela omaphakathi.
- Bethela nge-K2:Umphumela omaphakathi ube usubethelwa kusetshenziswa ukhiye wesibili u-K2, okhiqiza omunye umphumela omaphakathi.
- Khipha nge-K1:Ekugcineni, lo mphumela ususwa ukubethela kusetshenziswa ukhiye wokuqala u-K1 ukuze kutholwe umbhalo osobala wangempela.
Ukuphatha Okubalulekile
- Usayizi Wokhiye:Ukhiye ngamunye ku-DES ungamabhithi angu-56 ubude, okuholela kusayizi wokhiye osebenzayo ophelele wamabhithi angu-168 (njengoba i-K1, i-K2 ne-K3 zisetshenziswa ngokulandelana).
- Ukusetshenziswa Okubalulekile:I-K1 ne-K3 ingaba ukhiye ofanayo wokuhambisana emuva ne-DES evamile, kodwa kuyanconywa ukuthi i-K2 yehluke ukuze kuthuthukiswe ukuvikeleka.
Ukucatshangelwa Kokuphepha
- I-DES ithathwa njengevikelekile kodwa ihamba kancane uma iqhathaniswa nama-algorithms esimanje njenge-AES.
- Ngenxa yobude bayo bokhiye, i-3DES isengozini yokuhlaselwa okuthile futhi ayisanconywa ezinhlelweni ezintsha lapho ezinye izindlela ezingcono (njenge-AES) zitholakala khona.
I-DES isalokhu isetshenziswa ezinhlelweni zefa lapho kudingeka khona ukuhambisana ne-DES, kodwa izinhlelo zokusebenza zesimanje ngokuvamile zisebenzisa I-AES yokubethela kwe-symmetric ngenxa yokusebenza kahle kwayo nokuvikeleka okuqinile.
Umhlahlandlela Wokusebenzisa Ukubethela we-DES
Faka noma yimuphi umbhalo ongenalutho noma iphasiwedi ofuna ukuyibhala ngemfihlo. Ngemuva kwalokho, khetha imodi yokubhala kusuka kokwehlayo. Ngezansi ama-vales angenzeka:
-
I-ECB: Ngemodi ye-ECB, noma yimuphi umbhalo uhlukaniswa ube amabhulokhi amaningi, futhi ibhulokhi ngayinye ibethelwe ngokhiye onikeziwe ngakho-ke amabhulokhi wombhalo angenalutho afanayo abethelwa abe amabhlogo wombhalo we-cipher afanayo. Ngakho, le modi yokubethela ithathwa njengevikeleke kancane kunemodi ye-CBC. Ayikho i-IV edingekayo kumodi ye-ECB njengoba ibhulokhi ngayinye ibethelwe kumabhlogo wombhalo we-cipher afanayo. Khumbula, ukusetshenziswa kwe-IV kuqinisekisa ukuthi imibhalo engenalutho efanayo ibethelwa kuma-ciphertexts ahlukene.
-
I-CBC: Imodi yokubethela ye-CBC ibhekwa njengevikeleke kakhulu uma iqhathaniswa nemodi ye-ECB, njengoba i-CBC idinga i-IV esiza ekwenzeni ukubethela okungahleliwe kwamabhulokhi afanayo ngokungafani nemodi ye-ECB. Usayizi wevekhtha wokuqalisa wemodi ye-CBC kufanele ube ngu-64 bit okusho ukuthi kufanele ube nezinhlamvu eziyisi-8 ubude okusho ukuthi, 8*8 = 64 bits