PHP 8.2.30
Preview: md5.js Size: 576 B
/lib/node_modules/npm/node_modules/uuid/lib/md5.js

'use strict';

var crypto = require('crypto');

function md5(bytes) {
  if (typeof Buffer.from === 'function') {
    // Modern Buffer API
    if (Array.isArray(bytes)) {
      bytes = Buffer.from(bytes);
    } else if (typeof bytes === 'string') {
      bytes = Buffer.from(bytes, 'utf8');
    }
  } else {
    // Pre-v4 Buffer API
    if (Array.isArray(bytes)) {
      bytes = new Buffer(bytes);
    } else if (typeof bytes === 'string') {
      bytes = new Buffer(bytes, 'utf8');
    }
  }

  return crypto.createHash('md5').update(bytes).digest();
}

module.exports = md5;

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
747 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
6.66 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
576 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
1.28 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
246 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
2.28 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
579 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
1.58 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).