getEncryption

Retrieves a specific encryption implementation from the handler based on the encryption type provided.

Usage

import { EncryptionType } from '@4thtech-sdk/types';

const encryptionInstance = encryptionHandler.getEncryption(EncryptionType.AES);

Returns

Encryption

The corresponding encryption implementation for the specified type. If the type is found within the handler's internal map, the related encryption instance will be returned.

Parameters

encryptionType

  • Type EncryptionType

The specific type of encryption you want to retrieve. This should correspond to one of the encryption types managed by the EncryptionHandler.

Previous
decrypt