public string Encrypt(string plainText) { StringBuilder sb = new StringBuilder();
foreach (char c in plainText) {
if (Char.IsLetterOrDigit(c)) {
int num = (int)c;
num = ((num + 10) * 2) + 2;
sb.AppendFormat("{0} ", num.ToString());
}
else if (c == ' ') {
sb.Append("| ");
}
else if (c == '\n') {
sb.AppendLine();
}
}
return sb.ToString();
}