100LinesOfCode
100LinesOfCode copied to clipboard
Changes in the Encryption file!
I added some error handling, included the necessary functions, and replaced the while loops with if statements to avoid unnecessary breaks (it still works the same). The code is better now, but there are still a few issues left. Changes:
- If the user enters a string for decryption in hex or base64 that isn’t in the correct encrypted format, the code used to throw an error and crash. I’ve now added a proper function to check whether the string is in a valid format for decryption, along with more user-friendly error messages. 2)No while loop is needed here using if works better. 3)In the Morse code encryption, lowercase text couldn’t be added before. I updated it so that lowercase letters can now be encrypted as well.
Suggested changes: 1)Improve the menu to allow the user to choose whether they want to encrypt or decrypt. 2)Add more error handling in some methods.
👋 This pull request has been automatically marked as stale because it has not had recent activity.
It will be closed in 7 days if no further activity occurs.
If you're still working on this:
- Push new commits
- Add a comment with an update
- Request a review
Thank you for your contribution! 🙏