Skip to content

fix: add input validation to Caesar cipher#1299

Closed
Ashvin-KS wants to merge 1 commit into
steam-bell-92:mainfrom
Ashvin-KS:fix/caesar-input-validation
Closed

fix: add input validation to Caesar cipher#1299
Ashvin-KS wants to merge 1 commit into
steam-bell-92:mainfrom
Ashvin-KS:fix/caesar-input-validation

Conversation

@Ashvin-KS

Copy link
Copy Markdown
Contributor

Summary

Adds input validation to prevent crashes on empty or non-alphabetic input.

Changes

  • Added check for empty message input
  • Added warning when message contains no alphabetic characters
  • User is prompted to re-enter message if empty

Why

Without validation, the script crashes with an unhandled exception when:

  • User enters an empty string
  • Message contains no alphabetic characters

Closes #1293

Adds validation for empty messages and warns when message contains no
alphabetic characters.

Closes steam-bell-92#1293
@vercel

vercel Bot commented Jun 21, 2026

Copy link
Copy Markdown

@Ashvin-KS is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

@steam-bell-92

Copy link
Copy Markdown
Owner

@Ashvin-KS not your assigned issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Caesar cipher script has no input validation - crashes on non-alphabetic input

2 participants