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 ​
| Parameter | Type |
|---|---|
key | string |
payload | IPushPayload |
nonce? | Uint8Array<ArrayBufferLike> |
Returns ​
string