Frodo Library - v4.0.0-10
    Preparing search index...

    Type Alias FrodoCrypto

    type FrodoCrypto = {
        convertPrivateKeyToPem(
            key: string,
            passphrase?: string,
            name?: string,
        ): string;
    }
    Index

    Methods

    • Parses a private key and returns it as an unencrypted PKCS#8 PEM encoded string Supported private key formats include:

      • PEM (both PKCS#1 and PKCS#8 variants)
      • OpenSSH
      • DNSSEC
      • JWK

      Parameters

      • key: string

        The private key

      • Optionalpassphrase: string

        The passphrase for the private key if it is encrypted

      • Optionalname: string

        The name of the private key (i.e. the name of the file it came from, if applicable); used for error handling

      Returns string

      The unencrypted PKCS#8 PEM encoded private key