3d-interface/server/lib/vcode.js

10 lines
250 B
JavaScript

var hash = require('sha256');
var secretKey = require('../private.js').microSecretKey;
var campaignId = require('../private.js').microCampaignId;
module.exports = function(workerId) {
return 'mw-' + hash(campaignId + workerId + secretKey);
};