use randomBytes from @noble/hashes.

This commit is contained in:
fiatjaf
2022-01-01 14:59:12 -03:00
parent b271d6c06b
commit 2230f32d11
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
import aes from 'browserify-cipher'
import {Buffer} from 'buffer'
import randomBytes from 'randombytes'
import {randomBytes} from '@noble/hashes/utils'
import * as secp256k1 from '@noble/secp256k1'
export function encrypt(privkey, pubkey, text) {