Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.04 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.04 KB

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