a guest Jan 28th, 2014 66 Never
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)];
- encText += c;
RAW Paste Data