Vigenere Cipher in Java
By stumbling upon this page, I presume knowledge on the encryption is already at hand. Otherwise, take a walk first. The program is under the following assumptions:
- User only inputs characters (and spaces!) included in the given alphanumeric set.
- Numeric characters result in uppercase plain/cipher characters.
- Encryption/decryption key cannot have a space.
private static final char[] alphnum = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' };
3 Comments
September 9, 2010 at 13:35
nerd! lol. i’m spamming you lo. =D was curious what this geeky part of your blog is all about. turned out to be the literal interpretation of geeky like big bang geeky or geeky geeky. ***nosebleeding while typing comment (insert cotton balls in her nose)
***this is supposed to be a spam comment but I can’t leave a comment without answering the “spam protector” form. tsk. cunning geek. :crush:
September 11, 2010 at 10:35
So, how are the cotton balls doin’? :laugh:
It’s nice to show off about something you’re supposed to be good at sometimes, you know. And mind you, “cunning geek” actually sounds fab!
September 9, 2015 at 18:50
Can you or Yifu get their bios on the deep web?