private static string SimpleEncrypt(string value, string key) { string _encrypted = ""; int _keycount = key.Trim().Length; char[] _chars = value.ToCharArray(); if (_keycount <= 7) { _keycount = 7; } foreach (char _char in _chars) { _encrypted += VisualBasic.Chr(VisualBasic.Asc(_char) + _keycount).ToString(); } return(_encrypted); }