Replacements for md5
crypto (native)
If you're using the md5 package, strongly consider moving to a stronger algorithm if your usage is security-sensitive (for example, passwords). MD5 is not secure and hasn't been secure for many years.
If you must keep MD5 for compatibility, Node.js provides a native alternative via the crypto module.
ts
import crypto from 'node:crypto'
import md5 from 'md5'
md5('message')
crypto.createHash('md5').update('message').digest('hex')