Beispiel #1
0
 /// <summary>
 /// Decrypt cipher by public key
 /// </summary>
 /// <param name="dataBytes">Need to decrypt the data</param>
 /// <returns></returns>
 public byte[] DecryptByPublicKey(byte[] dataBytes)
 {
     if (PublicRsa is null)
     {
         throw new ArgumentException("public key can not null");
     }
     return(PublicRsa.DecryptValue(dataBytes));
 }