Skip to content

Instantly share code, notes, and snippets.

View deus42's full-sized avatar
🐤

Oleksii Gapchenko deus42

🐤
View GitHub Profile

Keybase proof

I hereby claim:

  • I am deus42 on github.
  • I am deus (https://keybase.io/deus) on keybase.
  • I have a public key whose fingerprint is 6812 CCC2 87DD 3F8F B50D 2BD4 9C78 60DE A555 B4DE

To claim this, I am signing this object:

@deus42
deus42 / CaesarCipher.cs
Created January 21, 2016 09:10
Caesar Cipher - first well known cipher
public class CaesarCipher
{
private readonly int _shift;
private readonly char[] _alphabet;
public CaesarCipher(char[] alphabet, int shift = 2)
{
_alphabet = alphabet;
_shift = shift;
}