Skip to content

Function: encryptPushPayload() ​

ts
function encryptPushPayload(
   key, 
   payload, 
   nonce?
): string;

Defined in: pushCrypto.ts:136

Seal a payload for the device whose secret key is. nonce exists for test vectors only: a nonce must never be used twice with one key.

Parameters ​

ParameterType
keystring
payloadIPushPayload
nonce?Uint8Array<ArrayBufferLike>

Returns ​

string

Released under the GNU Affero General Public License v3.0.