char[] charArray = plainText.ToCharArray(); StringBuilder sb = new StringBuilder(); int num; string hex; for (int i = 0; i < charArray.Length; i++) { num = Convert.ToInt32(charArray[i]); hex = num.ToString("x"); sb.Append(hex); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)