API Docs for: 1.3.12
Show:

EcAesCtrAsync Class

Async version of EcAesCtr that uses browser extensions (window.crypto) to accomplish cryptography much faster. Falls back to EcAesCtrAsyncWorker, if window.crypto is not available.

Item Index

Methods

Methods

decrypt

(
  • ciphertext
  • secret
  • iv
  • success
  • failure
)
static

Asynchronous form of EcAesCtr.decrypt

Parameters:

  • ciphertext String

    Text to decrypt.

  • secret String

    Secret to use to decrypt.

  • iv String

    Initialization Vector to use to decrypt.

  • success Function(string)

    Success method, result is Plaintext with no encoding.

  • failure Function(string)

    Failure method, parameter is error message.

encrypt

(
  • plaintext
  • secret
  • iv
  • success
  • failure
)
static

Asynchronous form of EcAesCtr.encrypt

Parameters:

  • plaintext String

    Text to encrypt.

  • secret String

    Secret to use to encrypt.

  • iv String

    Initialization Vector to use to encrypt.

  • success Function(string)

    Success method, result is Base64 encoded Ciphertext.

  • failure Function(string)

    Failure method, parameter is error message.