deno.land / std@0.139.0 / node / crypto.ts

crypto.ts
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.// Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license.import { default as randomBytes } from "./_crypto/randomBytes.ts";import randomFill, { randomFillSync } from "./_crypto/randomFill.ts";import randomInt from "./_crypto/randomInt.ts";import { pbkdf2, pbkdf2Sync } from "./_crypto/pbkdf2.ts";import { scrypt, scryptSync } from "./_crypto/scrypt.ts";import { timingSafeEqual } from "./_crypto/timingSafeEqual.ts";import { createHash, getHashes, Hash } from "./_crypto/hash.ts";import { privateDecrypt, privateEncrypt, publicDecrypt, publicEncrypt,} from "./_crypto/crypto_browserify/public_encrypt/mod.js";
const randomUUID = () => globalThis.crypto.randomUUID();const webcrypto = crypto;
export default { Hash, createHash, getHashes, randomFill, randomInt, randomFillSync, pbkdf2, pbkdf2Sync, privateDecrypt, privateEncrypt, publicDecrypt, publicEncrypt, randomBytes, randomUUID, scrypt, scryptSync, timingSafeEqual, webcrypto,};export { createHash, getHashes, Hash, pbkdf2, pbkdf2Sync, privateDecrypt, privateEncrypt, publicDecrypt, publicEncrypt, randomBytes, randomFill, randomFillSync, randomInt, randomUUID, scrypt, scryptSync, timingSafeEqual, webcrypto,};
std
Deno standard library
GitHub Stars
2178
Go to latest

Version Info

Tagged at
a month ago