Created
October 8, 2016 07:02
-
-
Save wuwb/c6be392bcc744db0248518d4784e35ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var crypto = require('crypto') | |
var md5s = [ | |
'3bed22f7f496e84b035a996522baa759', | |
'4c27c7e5718a78bfddf9012904b70eb7', | |
'55d67f90c8de149ead7ee674b024f38c', | |
'216642030c2d54cb1dd657dd66342c99', | |
'c239f3c31fd399fc052a9b7861f2073d', | |
'2b9f47811dd77fd544d570c34bf5f349', | |
'd110389979571714694a5054238465ca', | |
'38ba26c25fb1a32b4d0a3b93666b09b3' | |
] | |
function md5(text) { | |
return crypto.createHash('md5').update(text).digest('hex') | |
} | |
var text = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890'; | |
var pref = ''; | |
for (var i = 0; i < 8; i++) { | |
for (var j = 0; j < text.length; j++) { | |
var newWord = pref + text[j]; | |
var temp = md5('a6307d508e9020d93273a7c086d9735f' + newWord + md5(newWord)) | |
if (md5s[i] == temp) { | |
pref = pref + text[j] | |
} | |
} | |
} | |
console.log(pref) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment