Example #1
0
 /// <summary>
 /// Gets the DER encoded public key.
 /// </summary>
 /// <returns>The public key.</returns>
 public string ToPublicKeyString()
 {
     return(KeyFactory.ToPublicKeyString(keyPair.Public));
 }
Example #2
0
 /// <summary>
 /// Gets the encrypted and DER encoded private key.
 /// </summary>
 /// <param name="passPhrase">The pass phrase to encrypt the private key.</param>
 /// <returns>The encrypted private key.</returns>
 public string ToEncryptedPrivateKeyString(string passPhrase)
 {
     return(KeyFactory.ToEncryptedPrivateKeyString(keyPair.Private, passPhrase));
 }