/ crypto-hash.js
crypto-hash.js
 1  const crypto = require('crypto');
 2  
 3  const cryptoHash = (...inputs) => {
 4    const hash = crypto.createHash('sha256');
 5  
 6    hash.update(inputs.sort().join(' '));
 7  
 8    return hash.digest('hex');
 9  }
10  
11  module.exports = cryptoHash;