Skip to content

Commit

Permalink
fix: import 'node:crypto'
Browse files Browse the repository at this point in the history
  • Loading branch information
enpitsuLin committed Dec 17, 2024
1 parent 3fccb13 commit 8a14eb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/crypto.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { webcrypto } from 'node:crypto'
import CryptoJS from 'crypto-js'
import forge from 'node-forge'

const crypto = webcrypto

export async function md5(string: string) {
return CryptoJS.MD5(string).toString()
}
Expand Down

0 comments on commit 8a14eb1

Please sign in to comment.