示例#1
0
 public string BuildToken(string usuario, string rol)
 {
     return(Tools.Base64Encode(CryptoManager.Encrypt($"{usuario}|{rol}|{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}")));
 }
示例#2
0
文件: BaseManager.cs 项目: jaigle/avi
 public string BuildTokenold(LoginModel loginData)
 {
     return(Tools.Base64Encode(CryptoManager.Encrypt($"{loginData.UserField}|{loginData.PassField}|{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}")));
 }