Cipher

Class providing classic text encryption algorithms operating on uppercase alphabetic characters.

Methods

static string TranspositionCipher(string text)

Strips spaces and splits text characters by even and odd indices.

static string CaesarCipher(string text, int shift)

Shifts alphabet characters along index bounds using a positive offset value.

static string KeywordCipher(string text, string keyword)

Substitutes characters against an alphabet re-ordered by a unique keyword.

static string GiovanniCipher(string text, string keyword, string keyLetter)

Keyword cipher variation applying an alphabet shift derived from a key letter index.

Usage Example

C#
string encryptedCaesar = Cipher.CaesarCipher("HELLO WORLD", 3);
string encryptedKeyword = Cipher.KeywordCipher("SECRET TEXT", "MYKEY");