How to use the md5.startsWith function in md5

To help you get started, we’ve selected a few md5 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NiXXeD / adventofcode / day4.js View on Github external
for(x=1;!require('md5')(process.argv[2]+x++).startsWith('000000'););console.log(x)
github NiXXeD / adventofcode / 2015 / day4 / part1.js View on Github external
module.exports=i=>{for(var x=0;!require('md5')(i+x++).startsWith('00000'););return x-1}
github NiXXeD / adventofcode / 2015 / day4 / part2.js View on Github external
module.exports=i=>{for(var x=0;!require('md5')(i+x++).startsWith('000000'););return x-1}

md5

js function for hashing messages with MD5

BSD-3-Clause
Latest version published 4 years ago

Package Health Score

77 / 100
Full package analysis