DES ɔ DESede , wan simɛtrik-ki algɔritm fɔ di ɛnkripshɔn fɔ ilɛktronik data, na di wan we tek ples fɔ DES(Data Enkripshɔn Stɛndad) . ɛn i de gi mɔ sikrit ɛnkripshɔn pas DES. Di DES de brok di ki we di yuza gi insay tri sabki dɛn lɛk k1, k2, ɛn k3. Wan mɛsej de ɛnkript wit k1 fɔs, dɔn dɛn de dikript am wit k2 ɛn ɛnkript am bak wit k3. Di DESede ki saiz na 128 ɔ 192 bit ɛn i de blok saiz 64 bit. 2 we dɛn de fɔ wok—Tripul ECB (Ilektronik Kɔd Buk) ɛn Tripul CBC (Sayfa Blɔk Chenin).
Dis dɔŋ ya na di onlayn fri tul we de gi DES ɛnkripshɔn ɛn dikripshɔn wit di tu we dɛn fɔ wok fɔ ɛni klin tɛks.
Ɛni sikrit ki valyu we yu put, ɔ we wi mek nɔ de na dis sayt, dɛn gi dis tul tru HTTPS URL fɔ mek shɔ se dɛn nɔ go ebul fɔ tif ɛni sikrit ki.
DES Ɛnkripshɔn
- Di Ki Selekshɔn:DES de yuz tri ki, we dɛn kin kɔl K1, k2, k3. Ɛni ki lɔng 56 bit, bɔt bikɔs ɔf pariti bit, di ifɛktiv ki saiz na 64 bit fɔ wan ki.
- Enkripshɔn Prɔses::
- Enkript wit K1Di pleintɛks blɔk fɔs ɛnkript yuz di fɔs ki K1, we de rilizɔt sayfatɛks C1
- Dekript wit K2:Dɔn dɛn de dikript C1 bay we dɛn de yuz di sɛkɔn ki K2, we de prodyuz wan intamɛdiet rizɔlt.
- Enkript wit K3:Fɔ dɔn, di intamɛdiet rizɔlt de ɛnkript bak yuz di tɔd ki K3 fɔ prodyuz di fayn sayfatɛks C2.
DES Dikripshɔn we dɛn kin yuz
Dikripshɔn na DES na essentially di rivays fɔ ɛnkripshɔn:
- Di Kripshɔn Prɔses:
- Dekript wit K3Di sayfatɛks C2 de dikript yuz di tɔd ki K3 fɔ gɛt intamɛdiet rizɔlt.
- Enkript wit K2:Dɔn dɛn kin ɛnkript di intamɛdiet rizɔlt bay we dɛn yuz di sɛkɔn ki K2, we kin mek ɔda intamɛdiet rizɔlt.
- Dekript wit K1:Fɔ dɔn, dɛn de dikript dis rizɔlt bay we dɛn yuz di fɔs ki K1 fɔ gɛt di ɔrijinal pleintɛks.
Ki Manejmɛnt
- Ki Sayz: .Ɛni ki na DES na 56 bit lɔng, we de rilizɔt wan totɛl ifɛktiv ki saiz we na 168 bit (bikɔs dɛn de yuz K1, K2 ɛn K3 sikwinshal wan).
- Di Ki Yuz:K1 ɛn K3 kin bi di sem ki fɔ bakwɔd kɔmpitibliti wit standad DES, bɔt i fayn fɔ mek K2 difrɛn fɔ ɛp fɔ mek sikyɔriti bɛtɛ.
Di Tin dɛn we Yu fɔ Tink bɔt fɔ Sikyuriti
- DES na tin we dɛn kin tek as sikrit bɔt i rili slo we yu kɔmpia am wit di mɔdan algɔritm dɛn lɛk AES.
- Bikɔs ɔf in ki lɔng, 3DES kin izi fɔ sɔm atak dɛn ɛn dɛn nɔ kin rɛkɔmɛnd am igen fɔ nyu aplikeshɔn usay bɛtɛ ɔda we dɛn (lɛk AES) de.
DES stil de yuz insay lɛgsi sistɛm usay dɛn nid fɔ kɔmpit wit DES, bɔt di mɔdan aplikeshɔn dɛn kin yuz AES fɔ simɛtrik ɛnkripshɔn bikɔs ɔf in efyushɔn ɛn strɔng sikyɔriti.
DES Enkripshɔn Yuz Gɛd
Ɛntay ɛni plein-tɛks ɔ paswɔd we yu want fɔ ɛnkript. Afta dat, pik di ɛnkripshɔn mɔd frɔm di drɔpdɔwn. Dis dɔŋ ya na di vali dɛn we pɔsin kin gɛt:
-
ECB: 1. Wit ECB mod, ɛni tɛks de sheb to bɔku bɔku blɔk dɛn, ɛn ɛni blɔk de ɛnkript wit di ki we dɛn gi ɛn dat mek dɛn de ɛnkript di sem kayn plein tɛks blɔk dɛn to di sem sayfa tɛks blɔk dɛn. So, dɛn kin tek dis ɛnkripshɔn mɔd as tin we nɔ sikrit pas CBC mod. No IV nɔ nid fɔ ECB mod as ɛni blɔk de ɛnkript insay di sem sayfa tɛks blɔk dɛn. Mɛmba se, we yu yuz IV, dat de mek shɔ se dɛn dɔn ɛnkript di sem kayn klia tɛks dɛn to difrɛn sayfa tɛks dɛn.
-
CBC: CBC enkripshɔn mod dɛn kin tek am se i sikrit as yu kɔmpia am wit ECB mod, as CBC nid IV we de ɛp fɔ randomiz di ɛnkripshɔn fɔ di sem kayn blɔk dɛn we nɔ tan lɛk ECB mod. Di initializashɔn vektɔ saiz fɔ CBC mod fɔ bi 64 bit we min se i fɔ bi 8 karakta lɔng i.e., 8*8 = 64 bit