Skip to content

Implementation of a simplified version of the DES algorithm

License

Notifications You must be signed in to change notification settings

mayank-02/simplified-des

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simplified DES

Simplified DES (S-DES) is an educational tool designed to help students learn the structure of DES using smaller blocks and keys.

  • Feistal block cipher
  • Plaintext: 8 bit
  • Key: 10 bit
  • Ciphertext: 8 bit

S-DES Structure

Usage

Use the SimplifiedDES class in your program as follows.

For encryption:

from sdes import SimplifiedDES

plaintext = 0b10101010
key = 0b1110001110
ciphertext = SimplifiedDES(key).encrypt(plaintext) # 0b11001010

For decryption:

from sdes import SimplifiedDES

ciphertext = 0b11001010
key = 0b1110001110
plaintext = SimplifiedDES(key).decrypt(ciphertext) # 0b10101010

References

Authors

Mayank Jain

License

MIT