Unified Low-Level Crypto Class for common crypto operations needed for Signum.

IMPORTANT: Before using any of the crypto functions () needs to be called once

Usually, you want to use the comfort functions like encryptData, encryptMessage, decryptData, decryptData, getRandomBytes, etc.

Interacting with this class maybe necessary in cases where the underlying crypto implementations need to be customized, i.e. React Native

Constructors

Accessors

Methods

Constructors

Accessors

Methods

  • Initializes the crypto module with platform specific CryptoAdapter

    This must be called, before any of the crypto functions is being used

    Parameters

    • cryptoAdapter: CryptoAdapter

      The platform specific adapter, e.g. NodeJSCryptoAdapter, WebCryptoAdapter, or any other provider

    Returns void