using System.Collections.Generic;
using System.Security.Cryptography;
public static void Main()
Console.WriteLine("Skapad hash:" + CreateHash("107001007","2019-09-12%2018:41"));
private static string CreateHash(string objectName, string timeStamp)
string commonKey = "d6b49a0a_exampt_configured_7e89jdah";
HMACSHA1 hasher = new HMACSHA1(Encoding.ASCII.GetBytes(commonKey));
string stringToHash = objectName + timeStamp;
hasher.ComputeHash(Encoding.ASCII.GetBytes(stringToHash));
string hashedString = Convert.ToBase64String(hasher.Hash);
string urlSafeHash = hashedString.Replace("+", "-").
Replace("/", "_").Replace("=", "*");