using HexaEightASKClientLibrary.HexaEight;
public static void Main()
var generic_resource_login_token = "BTcLUOYpr7VfsMXFHU/H9bSOUWwPWRLarSN6RW/l1LEjOp7+L6GJe4CdwWI3O34Ji/3IJ85eIN2zP4TJOGRZZXaMCWRZ4S+tYAAJvbHfGNgxTi6qZ+JC8j7dgKIKpt1bnMwTW+xVx6ijKL5/2jiHsuN5MPa7fAFwg5+E1Wl3aQbyQ36wXvDtwslGfUbgiEqsmYrRejskZ7XH6ji8wN38JCEcCKkfK2htNUVvapVUaRUmwuSC+BpVrbgjO3vw9G2g40D3fMW06da+Fw7B/zV/VT0KwRf5suxWqNQ8FhNORcI=.9siUx94ngj5aUbEq19/6EBqUppzBarCXzLTIiqVd3/lMmdZgx8VHbv/26AM/k16hkVnXULpnor3fC/FbypG5GyoNcfmATBePIk9rvbzg8DYmLZ1JeWHOEgwTQVwXjVVSYfBYv9FWEvFjhdvmF8d4WzMZ80UrN6DQ/KwkatI+/xszGYgbRp2/QIBuokCbLZdWS6ksSMVk18ZYjZBB+I8pLUmFfGvR+rV9O4E6PTRm2hCZ0OogYLWzXhV9pUmsMES5i1Q2Mz9H4deGnrML4aRG6ZT+6Sf6dXLpiuRNo/Uba+NQJ0NljoiMPp/ZA7gQvTqFA9nsqrRgZtj+RfCn+l7p:Q19p4rpNUMuwiMpS3N1Bhg95cSJdwrTds/3KTywn9ONkjU/dvlHVhblDAwfMeWrgwabk3TFezLma70Y2nzDP+TFrsnCTKKYgAhAkqS9o8GOaslgJJqTJR+vAWiyL+CGOus0bMSraSmINZ2BqnRXlFLOekswt5eW3E9qBy6xhMyJj3yqmmfWzxpgSRd5dVfytotb5A5VDr1WjBPijuV9rMXPfuzhRhku96HkCyQG+Dj8JgPJCPETnI3LHw1VsqKCni1Q2Mz9H4deGnrML4aRG6ZT+6Sf6dXLpiuRNo/Uba+NQJ0NljoiMPp/ZA7gQvTqFA9nsqrRgZtj+RfCn+l7p";
var generic_resource_name = "32F06EE16908D7D40732761920122DDC80068DF91C3542DD9C787D49C6F214E5";
var generic_resource_login_token_password = "3fdh#hHvJeCT32FA?T3N22VAHV&2#6VW";
var myhost = new ASKClient(generic_resource_login_token, generic_resource_name, generic_resource_login_token_password);
myhost.SetRapidAPIKey("Put Your API Key Here");
var encrypteddata = "Paste The Encrypted Data Here";
var decrypteddata = myhost.DecryptMessageUsingHEToken(encrypteddata).GetAwaiter().GetResult();
Console.WriteLine("The Decrypted JSON Data is below : ");
var resptemplate = new { REQUEST = "", SENDER = "", RECEIVER = "", STIME = "", RTIME = "", BODY = "" };
var datamessage = JsonConvert.DeserializeAnonymousType(decrypteddata, resptemplate);
Console.WriteLine("Sender :" + datamessage.SENDER.ToString());
Console.WriteLine("Receiver :" + datamessage.RECEIVER.ToString());
Console.WriteLine("Message Encrypted At :" + datamessage.STIME.ToString());
Console.WriteLine("Message Decrypted At :" + datamessage.RTIME.ToString());
Console.WriteLine("Message Body :" + datamessage.BODY.ToString());