Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Symmetric

Hierarchy

  • Symmetric

Index

Properties

Static Ciphers

Ciphers: Ciphers = Ciphers

Static Encoding

Encoding: BufferEncoding = "base64"

Methods

Static decrypt

  • decrypt(encrypted: string, key: string): string
  • Parameters

    • encrypted: string

      The encrypted string

    • key: string

      The key used for encrypting

    Returns string

    The data as string

Static encrypt

  • encrypt(plain: string, key: string, type?: Ciphers): string
  • Parameters

    • plain: string

      data The data to be encrypted

    • key: string

      The encryption key

    • Default value type: Ciphers = Ciphers.AES_256_CTR

      [type=Ciphers.AES_256_CTR] The cipher that will be used

    Returns string

    Encrypted data as string

Static Private getCipherConfig

Generated using TypeDoc