Ejemplo n.º 1
0
 public bool Validate()
 {
     using (RSAKey rSAKey = new RSAKey(this.RSAPublicKey))
     {
         this.validated = RSAFunctions.VerifyData(rSAKey, this.HexStringToByteArray(this.LicenseHash), this.StringToBytes(this.ToStringInternal()));
     }
     return(this.IsValid);
 }
Ejemplo n.º 2
0
 public void Sign(RSAKey privateKey)
 {
     this.LicenseHash = this.ByteArrayToHex(RSAFunctions.SignData(privateKey, this.StringToBytes(this.ToStringInternal())));
 }