C# - encrypt and decrypt exercise