Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Crypter

Index

Methods

  • decrypt(hash: { content: any; iv: any }): string
  • description

    Decrypt a hash/encrypted data

    example
    decrypt('e7b75a472b65bc4a42e7b3f788...') // Result: "bacon"
    

    Parameters

    • hash: { content: any; iv: any }
      • content: any
      • iv: any

    Returns string

  • encrypt(text: string): string
  • description

    Encrypt a data

    example
    encrypt('bacon'); // Result: "e7b75a472b65bc4a42e7b3f788..."
    

    Parameters

    • text: string

    Returns string

Generated using TypeDoc