Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Crypto

Hierarchy

  • Crypto

Implements

Index

Methods

decryptContent

  • decryptContent(key: any, data: string): IPageContent | null
  • Decrypt page content using encryption key and encrypted string

    Parameters

    • key: any
    • data: string

    Returns IPageContent | null

encryptContent

  • Encrypt raw page content with supplied encryption key

    Parameters

    Returns string | null

Private hashPassphrase

  • hashPassphrase(passphrase: string): string
  • Use forge library"s util to hash passphrase

    Parameters

    • passphrase: string

    Returns string

Private libCheck

  • libCheck(): boolean
  • Returns boolean

Static _instance

  • Returns Crypto

Generated using TypeDoc