System.Web.Util.MachineKeySectionUtils.GetBytes C# (CSharp) Method

GetBytes() static private method

static private GetBytes ( string key, int len ) : byte[]
key string
len int
return byte[]
		internal static byte [] GetBytes (string key, int len)
		{
			byte [] result = new byte [len / 2];
			for (int i = 0; i < len; i += 2)
				result [i / 2] = (byte) (ToHexValue (key [i], true) + ToHexValue (key [i + 1], false));

			return result;
		}