DES los yog DESede , symmetric-key algorithm rau encryption ntawm cov ntaub ntawv hluav taws xob, yog tus ua tiav ntawm DES (Data Encryption Standard) thiab muab kev ruaj ntseg encryption ntau dua li DES. Lub DES rhuav tshem tus yuam sij uas tus neeg siv tau muab rau hauv peb lub subkeys li k1, k2, thiab k3. Cov lus yog encrypted nrog k1 ua ntej, ces decrypted nrog k2 thiab encrypted dua nrog k3. DESede qhov tseem ceeb loj yog 128 lossis 192 ntsis thiab thaiv qhov loj 64 ntsis. Muaj 2 hom kev ua haujlwm - Triple ECB (Electronic Code Book) thiab Triple CBC (Cipher Block Chaining).
Hauv qab no yog cov cuab yeej online pub dawb uas muab DES encryption thiab decryption nrog ob hom kev ua haujlwm rau cov ntawv nyeem.
Txhua tus nqi tseem ceeb zais cia uas koj nkag mus, lossis peb tsim tsis tau khaws cia hauv qhov chaw no, cov cuab yeej no tau muab los ntawm HTTPS URL los xyuas kom meej tias cov yuam sij zais cia tsis tuaj yeem raug nyiag.
DES Encryption
- Kev xaiv tseem ceeb:DES siv peb tus yuam sij, feem ntau hu ua K1, k2, k3. Txhua tus yuam sij yog 56 me ntsis ntev, tab sis vim yog cov khoom sib xws, qhov zoo ntawm qhov tseem ceeb yog 64 khoom ib tus yuam sij.
- Txheej txheem encryption::
- Encrypt nrog K1Lub plaintext thaiv yog thawj encrypted siv thawj tus yuam sij K1, ua rau ciphertext C1
- Decryption nrog K2:C1 yog tom qab ntawd decrypted siv tus yuam sij thib ob K2, ua qhov tshwm sim nruab nrab.
- Encrypt nrog K3:Thaum kawg, qhov tshwm sim nruab nrab yog encrypted dua siv tus yuam sij thib peb K3 los tsim qhov kawg ciphertext C2.
DES Decryption
Decryption hauv DES yog qhov tseem ceeb ntawm kev thim rov qab encryption:
- Txheej txheem decryption:
- Decryption nrog K3Lub ciphertext C2 yog decrypted siv tus yuam sij thib peb K3 kom tau txais qhov txiaj ntsig nruab nrab.
- Encrypt nrog K2:Cov txiaj ntsig nruab nrab yog tom qab ntawd encrypted siv tus yuam sij thib ob K2, ua rau lwm qhov tshwm sim nruab nrab.
- Decryption nrog K1:Thaum kawg, qhov txiaj ntsig no yog decrypted siv thawj tus yuam sij K1 kom tau txais cov ntsiab lus tseem ceeb.
Kev Tswj Tus Kheej
- Loj Loj:Txhua tus yuam sij hauv DES yog 56 me ntsis ntev, ua rau tag nrho cov ntsiab lus tseem ceeb ntawm 168 khoom (txij li K1, K2 thiab K3 tau siv ua ntu zus).
- Kev siv tseem ceeb:K1 thiab K3 tuaj yeem yog tib tus yuam sij rau rov qab sib raug zoo nrog tus qauv DES, tab sis nws tau pom zoo rau K2 kom sib txawv los txhim kho kev ruaj ntseg.
Kev xav txog kev nyab xeeb
- DES suav hais tias muaj kev ruaj ntseg tab sis kuj qeeb piv rau niaj hnub algorithms zoo li AES.
- Vim nws qhov tseem ceeb ntev, 3DES muaj kev cuam tshuam rau qee qhov kev tawm tsam thiab tsis pom zoo rau cov ntawv thov tshiab uas muaj lwm txoj hauv kev zoo dua (xws li AES) muaj.
DES tseem siv tau rau hauv cov txheej txheem qub txeeg qub teg uas yuav tsum tau ua tau zoo nrog DES, tab sis cov ntawv thov niaj hnub no feem ntau siv AES rau symmetric encryption vim nws efficiency thiab ruaj ntseg ruaj.
DES Encryption Usage Guide
Nkag mus rau cov ntawv sau yooj yooj yim lossis lo lus zais uas koj xav tau encrypt. Tom qab ntawd, xaiv hom encryption los ntawm dropdown. Hauv qab no yog cov vales tau:
-
ECB: Nrog ECB hom, cov ntawv nyeem tau muab faib ua ntau lub blocks, thiab txhua qhov thaiv yog encrypted nrog tus yuam sij muab thiab yog li cov ntawv nyeem zoo tib yam tau muab zais rau hauv cov ntawv cipher zoo tib yam. Li no, hom encryption no suav hais tias tsis muaj kev nyab xeeb dua li CBC hom. Tsis muaj IV yuav tsum tau rau hom ECB vim txhua qhov thaiv tau muab zais rau hauv cov ntawv cipher zoo tib yam. Nco ntsoov, kev siv IV ua kom ntseeg tau tias cov ntaub ntawv zoo tib yam tau muab zais rau cov ntawv ciphertexts sib txawv.
-
CBC: CBC encryption hom yog suav tias yog kev ruaj ntseg dua li piv rau ECB hom, raws li CBC xav tau IV uas pab hauv randomizing encryption ntawm cov blocks zoo li ECB hom. Qhov pib vector loj rau CBC hom yuav tsum yog 64 ntsis lub ntsiab lus nws yuav tsum yog 8 cim ntev piv txwv li, 8 * 8 = 64 khoom