this repo has no description
1var crypto = require('crypto');
2var fs = require('fs');
3
4module.exports = {
5 adventCoinSecret: function(input, frontPadding) {
6 var hash = '',
7 answer = -1;
8
9 while (hash.substring(0, frontPadding.length) !== frontPadding) {
10 hash = crypto.createHash('md5').update(input + (++answer)).digest('hex');
11 }
12
13 return answer;
14 }
15};
16
17