string KEY = "11111111";
int EXPIRATION = 60 * 60 * 24;
int ex = (int)Math.Floor((double)(GetTimeStamp(DateTime.Now) / 1000)) + EXPIRATION;
string url = "https:/imagedelivery.net?key="+ex;
var sha256 = new SHA256Managed();
var Asc = new UTF8Encoding();
var tmpByte = Asc.GetBytes(KEY);
var bufferToHex = sha256.ComputeHash(tmpByte);
sha256.Clear();
只会到这了,求大佬指点。
url 格式是这样。好像不太对。
// `url` now looks like
// https://imagedelivery.net/cheeW4oKsx5ljh8e8BoL2A/bc27a117-9509-446b-8c69-c81bfeac0a01/mobile?exp=1631289275