deno.land / std@0.166.0 / node / _crypto / crypto_browserify / public_encrypt / mod.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.// Copyright 2017 Calvin Metcalf. All rights reserved. MIT license.
import { publicEncrypt } from "./public_encrypt.js";import { privateDecrypt } from "./private_decrypt.js";
export { privateDecrypt, publicEncrypt };
export function privateEncrypt(key, buf) { return publicEncrypt(key, buf, true);}
export function publicDecrypt(key, buf) { return privateDecrypt(key, buf, true);}
std

Version Info

Tagged at
a year ago