Beispiel #1
0
 public static byte[] Create(string message, byte[] recipientPublicKey)
 {
     return(SealedPublicKeyBox.Create(Encoding.UTF8.GetBytes(message), recipientPublicKey));
 }
Beispiel #2
0
 public static byte[] Create(byte[] message, KeyPair recipientKeyPair)
 {
     return(SealedPublicKeyBox.Create(message, recipientKeyPair.PublicKey));
 }