https://github.com/mayank-02/simplified-des
Implementation of a simplified version of the DES algorithm
https://github.com/mayank-02/simplified-des
cryptography data-encryption-standard educational python simplified-data-encryption-standard simplified-des
Last synced: over 1 year ago
JSON representation
Implementation of a simplified version of the DES algorithm
- Host: GitHub
- URL: https://github.com/mayank-02/simplified-des
- Owner: mayank-02
- License: mit
- Created: 2020-12-08T10:40:43.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-08T11:10:22.000Z (over 5 years ago)
- Last Synced: 2025-01-23T08:17:36.745Z (over 1 year ago)
- Topics: cryptography, data-encryption-standard, educational, python, simplified-data-encryption-standard, simplified-des
- Language: Python
- Homepage:
- Size: 284 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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

## Usage
Use the `SimplifiedDES` class in your program as follows.
For encryption:
```python
from sdes import SimplifiedDES
plaintext = 0b10101010
key = 0b1110001110
ciphertext = SimplifiedDES(key).encrypt(plaintext) # 0b11001010
```
For decryption:
```python
from sdes import SimplifiedDES
ciphertext = 0b11001010
key = 0b1110001110
plaintext = SimplifiedDES(key).decrypt(ciphertext) # 0b10101010
```
## References
- Check out `theory.pdf` for more information and worked out examples.
- [Simplified DES as an excel workbook](http://www.postcogito.org/Kiko/SimplifiedDESWorksheet.html)
- [Data Encryption Standard](https://en.wikipedia.org/wiki/Data_Encryption_Standard)
## Authors
[Mayank Jain](https://github.com/mayank-02)
## License
MIT