Options
All
  • Public
  • Public/Protected
  • All
Menu

ed25519-box

Index

Functions

Functions

decrypt

  • decrypt(privKey: Uint8Array, pubKey: Uint8Array, input: any, nonce: Uint8Array | null, authenticate?: Boolean): Promise<Uint8Array>
  • Parameters

    • privKey: Uint8Array

      -

    • pubKey: Uint8Array

      -

    • input: any

      -

    • nonce: Uint8Array | null

      -

    • Default value authenticate: Boolean = true

      -

    Returns Promise<Uint8Array>

encrypt

  • encrypt(privKey: Uint8Array, pubKey: Uint8Array, input: any, nonce: Uint8Array | null, authenticate?: Boolean): Promise<Uint8Array>
  • Parameters

    • privKey: Uint8Array

      -

    • pubKey: Uint8Array

      -

    • input: any

      -

    • nonce: Uint8Array | null

      -

    • Default value authenticate: Boolean = true

      -

    Returns Promise<Uint8Array>