Skip to main content

Class: EncryptionKey

GroupKeys are AES cipher keys, which are used to encrypt/decrypt StreamMessages (when encryptionType is AES). Each group key contains 256 random bits of key data and an UUID.

Constructors

constructor

new EncryptionKey(id, data)

Parameters

NameType
idstring
dataBuffer

Methods

generate

Static generate(id?): EncryptionKey

Parameters

NameType
idstring

Returns

EncryptionKey