DES Encryption uye Decryption Online

DES kana DESede , symmetric-kiyi algorithm ye encryption yemagetsi data, ndiye anotsiva DES(Data Encryption Standard) uye inopa yakachengeteka encryption kupfuura DES. Iyo DES inotyora kiyi yakapihwa nemushandisi kuita matatu subkeys se k1, k2, uye k3. Meseji inovharirwa nek1 kutanga, yobva yadhindwa nek2 uye yakavharidzirwa zvakare nek3. Iyo DESede kiyi saizi i128 kana 192 bit uye inovhara saizi 64 bit. Pane nzira mbiri dzekushanda—Triple ECB (Electronic Code Book) uye Triple CBC (Cipher Block Chaining).

Pazasi pane chishandiso chemahara chepamhepo chinopa DES encryption uye decryption nemhando mbiri dzekushanda kune chero mavara akajeka.

DES Encryption

Base64 Hex

DES Decryption

Base64 Zviri pachena-Chinyorwa

Chero chakavanzika kiyi kukosha chaunoisa, kana isu chatinogadzira haina kuchengetwa pane ino saiti, chishandiso ichi chinopihwa kuburikidza neHTTPS URL kuona kuti chero makiyi akavanzika haakwanise kubiwa.

Kana uchikoshesa chishandiso ichi saka unogona kufunga kupa.

Tinotenda nerutsigiro rwenyu rusingaperi.

DES Encryption

  • Sarudzo Yakakosha:DES inoshandisa makiyi matatu, anowanzonzi K1, k2, k3. Kiyi yega yega ine 56 bits kureba, asi nekuda kweparity bits, iyo inoshanda kiyi saizi ndeye 64 bits pakiyi.
  • Encryption process ::
    • Encrypt neK1Iyo plaintext block inotanga kuvharirwa uchishandisa kiyi yekutanga K1, zvichikonzera ciphertext C1
    • Decrypt neK2:C1 inozodhindwa uchishandisa kiyi yechipiri K2, ichigadzira mhedzisiro yepakati.
    • Encrypt neK3:Chekupedzisira, mhedzisiro yepakati inovharirwa zvakare uchishandisa kiyi yechitatu K3 kugadzira yekupedzisira ciphertext C2.

DES Decryption

Decryption muDES ndiyo inonyanya kudzoserwa encryption:
  • Decryption process:
    • Decrypt neK3Iyo ciphertext C2 inodhindwa uchishandisa kiyi yechitatu K3 kuwana mhedzisiro yepakati.
    • Encrypt neK2:Mhedzisiro yepakati inobva yavharirwa uchishandisa kiyi yechipiri K2, ichigadzira imwe mhedzisiro yepakati.
    • Decrypt neK1:Chekupedzisira, mhedzisiro iyi inodzikiswa uchishandisa kiyi yekutanga K1 kuwana iyo yekutanga plaintext.

Key Management

  • Saizi Yakakosha:Kiyi yega yega muDES yakareba makumi mashanu nenhanhatu, zvichikonzera saizi yekiyi ye168 bits (sezvo K1, K2 neK3 zvichishandiswa zvakatevedzana).
  • Kushandiswa kwakakosha:K1 neK3 inogona kunge iri kiyi imwechete yekudzokera kumashure kuenderana neyakajairwa DES, asi zvinokurudzirwa kuti K2 ive yakasiyana kuti iwedzere kuchengetedzeka.

Chengetedzo Kufunga

  • DES inoonekwa seyakachengeteka asi iri kunonoka zvichienzaniswa neazvino algorithms seAES.
  • Nekuda kwehurefu hwayo hwakakosha, 3DES inotapukirwa nekumwe kurwiswa uye haichakurudzirwe kune zvitsva zvekushandisa uko zviri nani dzimwe nzira (seAES) dziripo.

DES inoramba ichishandiswa mumasisitimu enhaka uko kuenderana neDES kunodiwa, asi maapplication emazuva ano anowanzo shandisa. AES ye symmetric encryption nekuda kwekushanda kwayo uye kuchengetedzwa kwakasimba.

DES Encryption Usage Guide

Pinda chero chakajeka-mavara kana password yaunoda kunyora. Mushure meizvozvo, sarudza iyo encryption mode kubva pakudonha. Pazasi pane vales vanokwanisa:

  • ECB: Iine ECB modhi, chero chinyorwa chakakamurwa kuita akawanda mabhuroko, uye bhuroka rega rega rakavharidzirwa nekiyi yakapihwa uye nekudaro zvakafanana mameseji mabhuroki akavharirwa mune akafanana cipher zvinyorwa zvinyorwa. Nekudaro, iyi encryption modhi inoonekwa seisina kuchengetedzwa zvishoma pane CBC modhi. Hapana IV inodiwa kune ECB modhi sezvo bhuroka rega rega rakavharirwa mune akafanana cipher zvinyorwa zvinyorwa. Rangarira, kushandiswa kweIV kunovimbisa kuti zvinyorwa zvakafanana zvakavharirwa kune akasiyana ciphertext.

  • CBC: CBC encryption mode inoonekwa seyakachengetedzwa zvakanyanya kana ichienzaniswa neECB modhi, sezvo CBC inoda IV iyo inobatsira mukurongeka kuvharidzirwa kwezvivharo zvakafanana zvakasiyana neECB modhi. Saizi yevhekita yekutanga yeCBC modhi inofanira kuva 64 bit zvinoreva kuti inofanira kunge yakareba mavara masere kureva, 8*8 = 64 bits.