PEM_encode

Get a string containing a PEM encoded private key.

  1. string PEM_encode(PrivateKey key)
    static if(BOTAN_HAS_PUBLIC_KEY_CRYPTO)
    string
    PEM_encode
  2. string PEM_encode(PrivateKey key, RandomNumberGenerator rng, string pass, Duration dur, string pbe_algo)

Parameters

key PrivateKey

the key to encode

Return Value

Type: string

encoded key

Meta