frontend/.pnpm-store/v3/files/e7/a6a85147d6cfa6d5c27a7109d3cab669538e36e8f34da21f7a687860a2a7e0d3f53620e373fc3c4b3182051af6ca9e3e940cb09f2b272ec2b37fa68878147f

13 lines
281 B
Plaintext

import crypto from 'crypto';
function md5(bytes) {
if (Array.isArray(bytes)) {
bytes = Buffer.from(bytes);
} else if (typeof bytes === 'string') {
bytes = Buffer.from(bytes, 'utf8');
}
return crypto.createHash('md5').update(bytes).digest();
}
export default md5;