Beispiel #1
0
 /// <summary>
 /// 验证签名
 /// </summary>
 /// <param name="sign">签名</param>
 public bool Verify(string sign)
 {
     return(Encrypt.Rsa2Verify(_builder.Result(true), _key.GetPublicKey(), sign));
 }
Beispiel #2
0
 /// <summary>
 /// 签名
 /// </summary>
 public string Sign()
 {
     return(Encrypt.Rsa2Sign(_builder.Result(true), _key.GetKey()));
 }