public static string GetEmailToken(int id, string email) { return(KSHA1Util.Sha1("emial=" + email + "&id=" + id + "&key=" + KAuthConfig.YijinTokenKey)); }
public static bool CheckEmailToken(int id, string email, string token) { return(KSHA1Util.Sha1("emial=" + email + "&id=" + id + "&key=" + KAuthConfig.YijinTokenKey) == token); }
private static string GetToken(string timeStamp, string nonceStr, string body) { return(KSHA1Util.Sha1("body=" + body + "×tamp=" + timeStamp + "&noncestr=" + nonceStr + "&key=" + KAuthConfig.YijinTokenKey)); }