Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach (char c in plainText.ToUpper())
- {
- int idx = c - 'A';
- if (idx >= 0 && idx < alphabet.Length)
- {
- encText += alphabet[Mod(idx + keyValue), 26)];
- }
- else
- {
- encText += c;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement