robin*

id와 ip 기반 해시 함수 제작

1 +const crypto = require('crypto');
2 +
3 +module.exports = function(id, ip) {
4 + let hash = crypto.createHmac('sha256', `${id}${ip}sytgsalt`);
5 + return hash.digest('base64').slice(0, 8);
6 +};
...\ No newline at end of file ...\ No newline at end of file