Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CryptoProvider

Hierarchy

  • CryptoProvider

Index

References

Properties

Methods

References

Purpose

Re-exports Purpose

Properties

isStreamMode

isStreamMode: boolean

Methods

getCryptor

  • getCryptor(filePath: string, purpose: string): AesCryptor
  • Create or reuse AesCryptor by condition

    abstract

    Parameters

    • filePath: string
    • purpose: string

    Returns AesCryptor

run

  • run(data: Buffer, filePath: string, purpose: string): void
  • Should execute encrypt or decrypt by condition if needed

    abstract

    Parameters

    • data: Buffer
    • filePath: string
    • purpose: string

    Returns void

Generated using TypeDoc