DES ko DESede , Maɓallin maɓalli na simmetric don ɓoye bayanan lantarki, shine magajin DES (Misali na ɓoye bayanan) kuma yana ba da ingantaccen ɓoyewa fiye da DES. DES yana karya maɓalli da aka samar da mai amfani zuwa maɓalli uku kamar k1, k2, da k3. Ana rufaffen saƙo da k1 da farko, sannan a ɓoye shi da k2 kuma a sake rufaffen saƙo da k3. Girman maɓallin DESede shine 128 ko 192 bit kuma yana toshe girman 64 bit. Akwai nau'ikan aiki guda 2 - Triple ECB (Littafin Lantarki na Lantarki) da Triple CBC (Cipher Block Chaining).
A ƙasa akwai kayan aikin kyauta na kan layi wanda ke ba da ɓoyayyen ɓoyayyen DES da ɓarna tare da hanyoyin aiki guda biyu don kowane rubutu bayyananne.
Duk wata ƙimar maɓalli na sirri da kuka shigar, ko muka ƙirƙira ba a adana shi akan wannan rukunin yanar gizon, ana samar da wannan kayan aikin ta hanyar URL na HTTPS don tabbatar da cewa ba za a iya sace duk wani maɓalli na sirri ba.
DES Encryption
- Zaɓin Maɓalli:DES tana amfani da maɓallai uku, yawanci ana kiranta da K1, k2, k3. Kowane maɓalli yana da tsayin bits 56, amma saboda raƙuman maɓalli, ingantaccen girman maɓalli shine 64 ragowa kowane maɓalli.
- Tsarin ɓoyewa ::
- Encrypt tare da K1An fara rufaffen katangar bayyananniyar ta amfani da maɓalli na farko K1, wanda ya haifar da ciphertext C1
- Ƙaddamar da K2:C1 kuma ana ɓoye bayanan ta amfani da maɓalli na biyu K2, yana samar da sakamako mai tsaka-tsaki.
- Rufewa tare da K3:A ƙarshe, sakamakon tsaka-tsakin yana sake ɓoyewa ta amfani da maɓallin K3 na uku don samar da rubutun C2 na ƙarshe.
Decryption DES
Decryption a cikin DES shine ainihin baya na boye-boye:
- Tsarin Rushewa:
- Zazzagewa da K3Rubutun ciphertext C2 an lalata shi ta amfani da maɓalli na uku K3 don samun sakamako na tsaka-tsaki.
- Rufewa tare da K2:Sa'an nan kuma ana ɓoye sakamakon matsakaici ta amfani da maɓallin K2 na biyu, yana haifar da wani matsakaicin sakamako.
- Ƙaddamar da K1:A ƙarshe, ana ɓoye wannan sakamakon ta amfani da maɓalli na farko K1 don samun ainihin rubutun.
Mabuɗin Gudanarwa
- Girman Maɓalli:Kowane maɓalli a cikin DES yana da tsayi 56, yana haifar da jimlar girman maɓalli mai inganci na ragi 168 (tunda ana amfani da K1, K2 da K3 a jere).
- Mabuɗin Amfani:K1 da K3 na iya zama maɓalli ɗaya don dacewa da baya tare da daidaitaccen DES, amma ana ba da shawarar K2 ya bambanta don haɓaka tsaro.
La'akarin Tsaro
- Ana ɗaukar DES amintacce amma yana da ɗan jinkiri idan aka kwatanta da algorithms na zamani kamar AES.
- Saboda tsayin maɓallinsa, 3DES yana da sauƙi ga wasu hare-hare kuma ba a sake ba da shawarar don sabbin aikace-aikace inda akwai mafi kyawun madadin (kamar AES).
Ana ci gaba da amfani da DES a tsarin gado inda ake buƙatar dacewa da DES, amma aikace-aikacen zamani galibi ana amfani da su AES don boye-boye na simmetric saboda inganci da ingantaccen tsaro.
Jagorar Amfani da Sirri na DES
Shigar da kowane bayyanannen rubutu ko kalmar sirri da kake son ɓoyewa. Bayan haka, zaɓi yanayin ɓoyewa daga zazzagewa. A ƙasa akwai yiwuwar vales:
-
ECB: Tare da yanayin ECB, kowane rubutu yana rarraba zuwa tubalan da yawa, kuma kowane toshe an rufaffen rufaffen shi tare da maɓalli da aka bayar kuma saboda haka ana rufaffen tubalan rubutu iri ɗaya cikin tubalan rubutu iri ɗaya. Don haka, ana ɗaukar wannan yanayin ɓoyayyen a matsayin mafi ƙarancin tsaro fiye da yanayin CBC. Babu IV da ake buƙata don yanayin ECB yayin da kowane toshe aka rufaffen ɓoye cikin tubalan rubutu iri ɗaya. Ka tuna, yin amfani da IV yana tabbatar da cewa an rufaffen rufaffiyar rubutu iri ɗaya zuwa rubutun rubutu daban-daban.
-
CBC: Yanayin ɓoyayyen CBC ana ɗaukarsa mafi amintaccen idan aka kwatanta da yanayin ECB, kamar yadda CBC ke buƙatar IV wanda ke taimakawa cikin bazuwar ɓoye ɓoyayyen tubalan sabanin yanayin ECB. Girman farawar vector don yanayin CBC yakamata ya zama 64 bit ma'ana dole ne ya zama tsayin haruffa 8 watau, 8*8 = 64 bits