Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AsyncOptionalCreatable<CryptoOptions>
    • Crypto

Index

Methods

close

  • close(): void
  • Returns void

decrypt

  • decrypt(text?: undefined | string): Optional<string>
  • Decrypts text.

    Parameters

    • Optional text: undefined | string

    Returns Optional<string>

    If enableTokenEncryption is set to false or not defined in package.json then the text is simply returned. The text is then assumed to be unencrypted.

encrypt

  • encrypt(text?: undefined | string): Optional<string>
  • Encrypts text.

    Parameters

    • Optional text: undefined | string

    Returns Optional<string>

    The encrypted string or undefined if no string was passed.

Protected init

  • init(): Promise<void>
  • Returns Promise<void>

Static create

  • create<P, T>(this: object, options?: P): Promise<T>
  • Asynchronously constructs and initializes a new instance of a concrete subclass with the optional options.

    Type parameters

    • P

    • T: AsyncOptionalCreatable<P>

    Parameters

    • this: object
    • Optional options: P

      An options object providing initialization params to the async constructor.

    Returns Promise<T>