Skip to content

A python script for encryption and decryption using the Data Encryption Standard (DES) algorithm in the Cipher Block Chaining (CBC) mode of operation .

Notifications You must be signed in to change notification settings

BelaskerAdel/DES_CBC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

DES_CBC

This is a python script for encryption and decryption using the Data Encryption Standard (DES) algorithm in the Cipher Block Chaining (CBC) mode of operation .

Inputs :

Initial Vector IV : 64 bits binary vector
Text : ASCII chars
Key : string of 16 HEX chars

Example :

Encrypt the text="Adel Belasker" in CBC mode with the KEY="1f4f8a113b4a5d66" with initial vector IV=[0]*40+[1]*20+[0]*4 :

cypher_text=CBC_DES_ENC(IV,text,KEY)

Decryction:

original_text=CBC_DES_DEC(IV,cypher_text,KEY)

References :

For further details about how DES works , read this [PDF] .
and to learn about CBC mode , please visit this [link].

Author :

Adel Belasker
E-mail : adel.belasker@gmail.com
Linkedin : https://www.linkedin.com/in/belasker/

About

A python script for encryption and decryption using the Data Encryption Standard (DES) algorithm in the Cipher Block Chaining (CBC) mode of operation .

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages