@li0ard/aspe - v0.1.2
    Preparing search index...

    Class SecretKey

    ASP Secret key

    Index

    Constructors

    • ASP Secret key

      Parameters

      • keyType: KeyType

        Key type (ES256 or EdDSA)

      • privateKey: Uint8Array

        Private key

      • OptionalpublicKey: Uint8Array<ArrayBufferLike>

        Public key

      Returns SecretKey

    Properties

    keyType: KeyType

    Key type (ES256 or EdDSA)

    privateKey: Uint8Array

    Private key

    publicKey: Uint8Array

    Public key

    Accessors

    • get thumbprint(): string

      Public key (ASP profile) thumbprint

      Returns string

    Methods

    • Export secret key to password-protected base64

      Parameters

      • password: string

      Returns Promise<string>

    • Import secret key from password-protected base64

      Parameters

      • encryptedKey: string
      • password: string

      Returns Promise<SecretKey>