Preparing for micro workers
This commit is contained in:
8
lib/vcode.js
Normal file
8
lib/vcode.js
Normal file
@@ -0,0 +1,8 @@
|
||||
var hash = require('sha256');
|
||||
var secretKey = require('../private.js').microSecretKey;
|
||||
|
||||
module.exports = function(campaignId, workerId) {
|
||||
|
||||
return 'mw-' + hash(campaignId + workerId + secretKey);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user