UNPKG

@mieweb/wikigdrive

Version:

Google Drive to MarkDown synchronization

10 lines (9 loc) 259 B
import crypto from 'node:crypto'; export async function generateMD5Hash(data) { // TODO: migrate to sha256 // const buffer = Buffer.from(data); const hash = crypto.createHash('md5') .update(data) .digest('hex'); return hash; }