crypto

md5

const crypto = require('crypto')
const fs = require('fs')

var id = crypto.createHash('md5')
  .update(fs.readFileSync('./source-file', 'utf8'))
  .digest('hex')
  .slice(0, 8)

results matching ""

    No results matching ""