HashSlap-Summer-of-Code/cipher-vault
Add Error Handling to Python Cipher Scripts
オープン
#9 opened on 2025/06/19
HSSOCIntermediateenhancementgood first issuehacktoberfest
Repository metrics
- Stars
- (0 個のスター)
- PR merge metrics
- (PR metrics pending)
説明
Description:
Enhance the reliability of the existing Python cipher scripts (e.g., Caesar, AES) by adding input validation and exception handling. This improves the user experience and script robustness.
Expected Tasks:
- Review all Python files in the
ciphers/folder - Add
try-exceptblocks to handle:- Non-string input
- Incorrect key sizes
- Unsupported characters
- Write meaningful error messages and avoid crashes
- Create a new file
ERROR_HANDLING.mdto document:- Types of handled errors
- Example error messages
Stretch Tasks:
- Use custom exception classes (e.g.,
InvalidKeyError) - Add unit tests to verify error handling works