kaneko
2/29/2020 - 1:17 PM

ハッシュ関数作成(Node.js)

const crypto = require('crypto');
 
function createValidHash(originalId,userName) {
 
  const sha1sum = crypto.createHash('sha1');
  sha1sum.update(originalId+userName);
  return sha1sum.digest('hex');
 
}