//==================================================================== // This file is generated as part of Web project conversion. // The extra class 'StringHelper' in the code behind file in 'Login.aspx.cs' is moved to this file. //==================================================================== using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Configuration; using System.Web.Security; using System.Security.Cryptography; using System.IO; using System.Text; namespace CodeName.APPa { public class StringHelper { public static byte[] HexStringToBytes(string hex) { if (hex.Length==0) { return new byte[] {0}; } if (hex.Length % 2 == 1) { hex = "0" + hex; } byte[] result = new byte[hex.Length/2]; for (int i=0; i