© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
66 replies
maroonlol

Caesar Cipher Program - Display 'Invalid String' if the user enters a non-alphabetical character

https://github.com/AbdulRaheemNazir/MiniApps/blob/main/Encrypt%20Caesar%20Cipher

Hi,
I'm making a multifunctional program in C#. I have made a Caesar Cipher Encryption program and it works. However when I type in a string plus a non-alphabetical character to encrypt it encrypts the alphabetical values (which is good) and also displays the non-alphabetical character. I would want it so that if the user enters a non-alphabetical character in the string it will say to type a valid string but I'm unsure how to approach this. Any assistance would be greatly appreciated
image.png
GitHub
MiniApps/Encrypt Caesar Cipher at main · AbdulRaheemNazir/MiniApps
Contribute to AbdulRaheemNazir/MiniApps development by creating an account on GitHub.
MiniApps/Encrypt Caesar Cipher at main · AbdulRaheemNazir/MiniApps
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

✅ Caesar Cipher Code Not Returning Anything
C#CC# / help
3y ago
✅ Caesar Cipher Code with Weird Behavior
C#CC# / help
3y ago
I'm trying to make my program check if input is a string (Only alphabetical characters) but it displ
C#CC# / help
4y ago
Caesar shift
C#CC# / help
4y ago