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

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

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

Examples

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

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

Parameters

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

Returns

Encrypted