https://github.com/albinzayedrawan/symmetric-encryption-stream-and-block-cipher
Lab Exercises about stream and block cipher encryption methods.
https://github.com/albinzayedrawan/symmetric-encryption-stream-and-block-cipher
aes-encryption cryptography rc4-algorithm
Last synced: 19 days ago
JSON representation
Lab Exercises about stream and block cipher encryption methods.
- Host: GitHub
- URL: https://github.com/albinzayedrawan/symmetric-encryption-stream-and-block-cipher
- Owner: albinzayedrawan
- Created: 2024-11-10T15:57:42.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-10T16:04:22.000Z (5 months ago)
- Last Synced: 2025-02-10T01:30:02.101Z (2 months ago)
- Topics: aes-encryption, cryptography, rc4-algorithm
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Symmetric Encryption (Stream and Block Cipher)
## Stream Cipher (RC4):
- The Python program will implement the RC4 algorithm using a given key.
- The program should accept plaintext and a key as input, and output the corresponding ciphertext in hexadecimal format.
- It should also decrypt the ciphertext back to plaintext using the same key.## Block Cipher (AES):
- Use Python’s cryptography library to implement AES encryption.
```bash
pip install cryptography
```
- The program should prompt the user to select either ECB or CBC mode.
- It should take plaintext, a 16-byte (128-bit) key for simplicity, and IV (for CBC mode) as input, and output the ciphertext in hexadecimal format.
- The program should also be able to decrypt the ciphertext back to plaintext.