using System; using System.Web; using framework_library; class EncAuth { static void Main(string[] args) { int recId = args.Length > 0 ? int.Parse(args[0]) : 52505; string customerCode = args.Length > 1 ? args[1] : "SHOU-1"; var enc = new encryption("p@l3tt3"); string authData = customerCode + "|" + recId + "|" + DateTime.Now.ToString("yyyy-MM-dd"); string encCode = HttpUtility.UrlEncode(enc.encryptValue(authData)); Console.WriteLine(encCode); } }