Module: crypto/gcm

This module wraps native AES-GCM en/decryption for both the WebCrypto api as well as node.js' crypto api.

Source:

Requires

Methods

(async, inner) GCM(cipher, key)

Class to en/decrypt using GCM mode.

Parameters:
Name Type Description
cipher String

The symmetric cipher algorithm to use e.g. 'aes128'

key Uint8Array

The encryption key

Source: