![]() |
Vigenere Cipher C# Implementation - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Visual Basic & .NET Framework (https://sinister.ly/Forum-Visual-Basic-NET-Framework) +--- Thread: Vigenere Cipher C# Implementation (/Thread-Vigenere-Cipher-C-Implementation) |
Vigenere Cipher C# Implementation - ArkPhaze - 11-01-2013 Here's some C# code I wrote for the Vigenere Cipher, which is essentially an extended implementation of the Ceasar Cipher algorithm. Code: static void VigenereEncrypt(ref StringBuilder s, string key) Methods and demo usage in code above. Note: Numeric values in the key will screw up the encryption, and thus the decryption however. Only use letters. I could've thrown an exception in that case, but I'll leave it up to you as to what you want to do with that. enjoy |