DES alo DESede ƒe dɔwɔwɔ , si nye symmetric-key algorithm si wotsɔ ɣlaa elektrɔnik nyatakakawoe, ye nye esi va xɔ ɖe eteƒe DES(Nyatakakawo ƒe Nyatakakadzraɖoƒea ƒe Dzidzenu) . eye wònaa nyatakaka ɣaɣla si le dedie wu DES. DES la ma safui si zãla na la ɖe safui sue etɔ̃ me abe k1, k2, kple k3 ene. Wotsɔa k1 ɣlaa gbedasi aɖe gbã, emegbe wotsɔa k2 ɖea nya ɣaɣlawo ɖa eye wogatsɔa k3 ɣlaae ake. DESede safui ƒe lolome nye 128 alo 192 bit eye wòxea mɔ na lolome 64 bit. Dɔwɔwɔ ƒe mɔnu 2 ye li—Triple ECB (Electronic Code Book) kple Triple CBC (Cipher Block Chaining).
Dɔwɔnu si wozãna femaxee le Internet dzi si naa DES nya ɣaɣla kple nya ɣaɣlawo ɖeɖeɖa kple dɔwɔwɔ ƒe mɔnu eveawo na nuŋɔŋlɔ gbadza ɖesiaɖe la le ete.
Safui ɣaɣla ƒe asixɔxɔ ɖesiaɖe si nèŋlɔ, alo míewɔ la, womedzrae ɖo ɖe nyatakakadzraɖoƒe sia o, wotsɔ dɔwɔnu sia na to HTTPS URL dzi be woakpɔ egbɔ be womate ŋu afi safui ɣaɣla aɖeke o.
DES Nya ɣaɣlawo tsɔtsɔ ɣla
- Nu Vevi Siwo Tiatia:DES zãa safui etɔ̃, siwo woyɔna zi geɖe be K1, k2, k3. Safui ɖesiaɖe didi bit 56, gake le parity bits ta la, safui ƒe lolome nyuitɔ nye bit 64 le safui ɖesiaɖe me.
- Encryption ƒe Dɔwɔna::
- Encrypt kple K1Wozãa safui gbãtɔ K1 tsɔ ɣlaa nuŋɔŋlɔ gbadzaa ƒe mɔxenu la gbã, si wɔnɛ be woŋlɔa nya ɣaɣla C1
- Decrypt kple K2:Emegbe wozãa safui evelia K2 tsɔ ɖea C1 ƒe nya ɣaɣlawo gɔme, si wɔnɛ be dometsotso aɖe dona.
- Encrypt kple K3:Mlɔeba la, wogatsɔa safui etɔ̃lia K3 ɣlaa domedome emetsonua tsɔ wɔa nya ɣaɣla mamlɛtɔ C2.
DES Nya ɣaɣlawo ɖeɖeɖa
Nya ɣaɣlawo ɖeɖeɖa le DES me nye nya ɣaɣlawo ɖeɖeɖa ƒe megbetɔ koŋ:
- Decryption ƒe Dɔwɔna:
- Decrypt kple K3Woɖea nya ɣaɣla C2 la gɔme to safui etɔ̃lia K3 zazã me be woakpɔ domedome emetsonu.
- Encrypt kple K2:Emegbe wozãa safui evelia K2 tsɔ ɣlaa domedome emetsonua, si wɔnɛ be dometsonu bubu dona.
- Decrypt kple K1:Mlɔeba la, woɖea emetsonu sia gɔme to safui gbãtɔ K1 zazã me be woakpɔ nuŋɔŋlɔ gbãtɔ si me kɔ.
Safuiwo Dzikpɔkpɔ
- Safui ƒe Agbɔsɔsɔ:Safui ɖesiaɖe si le DES me didi bit 56, si wɔnɛ be safui ƒe lolome si wɔa dɔ nyuie katã nye bit 168 (elabena wozãa K1, K2 kple K3 ɖe wo nɔewo yome ta).
- Zãzã Vevi:K1 kple K3 ateŋu anye safui ɖeka na megbedede ƒe sɔsɔ kple DES si wozãna ɖaa, gake wokafui be K2 nato vovo be woatsɔ ado dedienɔnɔ ɖe ŋgɔ.
Dedienɔnɔ Ŋuti Nukpɔsusuwo
- Wobua DES be ele dedie gake ewɔa blewu vie ne wotsɔe sɔ kple egbegbe akɔntabubuwo abe AES ene.
- Le eƒe safui ƒe didime ta la, 3DES te ŋu dzea amedzidzedze aɖewo dzi bɔbɔe eye womegakafui na dɔwɔwɔ yeyewo le afisiwo mɔnu bubu siwo nyo wu (abe AES ene) li o.
DES gakpɔtɔ le zazãm le domenyinu ƒe ɖoɖo siwo me wòhiã be woawɔ ɖeka kple DES le, gake zi geɖe la, egbegbe dɔwɔɖoɖowo zãnɛ AES na nya ɣaɣla si sɔ kple wo nɔewo le eƒe dɔwɔwɔ nyuie kple dedienɔnɔ sesẽ ta.
DES Encryption Zazã Ŋuti Mɔfiame
Ŋlɔ nuŋɔŋlɔ gbadzaa alo nyagbe ɣaɣla ɖesiaɖe si nèdi be yeatsɔ aɣla. Le ema megbe la, tia nya ɣaɣla ƒe mɔnu tso nyatakakadzraɖoƒea. Bali siwo ate ŋu anɔ anyi la le ete:
-
ECB: Le ECB mode me la, womaa nuŋɔŋlɔ ɖesiaɖe ɖe block geɖe me, eye wotsɔa safui si wona la ɣlaa block ɖesiaɖe eye eyata wotsɔa nya ɣaɣlawo dea nuŋɔŋlɔ gbadza siwo sɔ kple wo nɔewo me ɖe cipher text block siwo sɔ me. Eyata wobua nya ɣaɣla ƒe mɔnu sia be mele dedie boo o wu CBC mɔnu. IV aɖeke mehiã na ECB nɔnɔme o elabena wotsɔa nya ɣaɣlawo ŋlɔa block ɖesiaɖe ɖe cipher text block siwo sɔ me. Ðo ŋku edzi be IV zazã kpɔa egbɔ be wotsɔ nya ɣaɣla siwo sɔ la ɣla ɖe nya ɣaɣla vovovowo me.
-
CBC: Wobua CBC ƒe nya ɣaɣla ƒe nɔnɔme be ele dedie wu ne wotsɔe sɔ kple ECB ƒe nɔnɔme, elabena CBC hiã IV si kpena ɖe ame ŋu le mɔxexeɖenu siwo sɔ kple wo nɔewo ƒe nya ɣaɣlawo ɖoɖo ɖe ɖoɖo nu me to vovo na ECB ƒe nɔnɔme. Ele be gɔmedzedze ƒe vektor ƒe lolome na CBC nɔnɔme nanye 64 bit si fia be ele be wòadidi ŋɔŋlɔdzesi 8 i.e., 8*8 = 64 bits