Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/util-crypto/nacl/encrypt.ts>naclEncrypt

Package publishing for deno.land/x/polkadot
Go to Latest
function naclEncrypt
import { naclEncrypt } from "https://deno.land/x/polkadot@0.2.39/util-crypto/nacl/encrypt.ts";

Examples

import { naclEncrypt } from 'https://deno.land/x/polkadot@0.2.39/util-crypto/mod.ts';

naclEncrypt([...], [...]); // => [...]

Parameters

message: Uint8Array
secret: Uint8Array
optional
nonce: Uint8Array = [UNSUPPORTED]

Returns

Encrypted