private static string getScrambleACSET(int networkId, int transportId, int serviceId, int sector, int productId)
StringBuilder ret = new StringBuilder();
ret.Append("90100026").Append("9011000101");
ret.AppendFormat("90140002{0:x4}", networkId);
ret.AppendFormat("90130002{0:x4}", transportId);
ret.AppendFormat("90120002{0:x4}", serviceId);
ret.AppendFormat("90170001{0:x2}", sector);
ret.AppendFormat("90180002{0}", productId);
public static void Main()
Console.WriteLine(getScrambleACSET(6144,20,155,0,216));