Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "index"

Index

Variables

Functions

Variables

Const IV_LENGTH

IV_LENGTH: 16 = 16

Let key

key: Buffer = Buffer.alloc(32)

Functions

decrypt

  • decrypt(text: string): string
  • Decrypt a string of data

    Parameters

    • text: string

      needed to be decrypted

    Returns string

    the decrypted data

encrypt

  • encrypt(text: string): string
  • Encrypt a string of data

    Parameters

    • text: string

      to be encrypted

    Returns string

    the encrypted data

setKey

  • setKey(pin: string): void
  • Set key with user pin

    Parameters

    • pin: string

    Returns void

Generated using TypeDoc