-
Notifications
You must be signed in to change notification settings - Fork 0
/
new.js
22 lines (17 loc) · 889 Bytes
/
new.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const CryptoJS = require('crypto-js');
function aes() {
var e = CryptoJS.enc.Hex.parse('f8c7fd111dedb4c9cdfb99edf35e3db9'),
f = CryptoJS.enc.Hex.parse('0a379ab1ee9cb40a40398a6d36b7a002'),
b = 'q/svKjOVICNd0iGpYWuQMj4wk p0R137hg1LXPCDKJmEE1f/RmTJIkbZXIfTEH1NdQG1MS2CW/Shax88gHTZWxNs08AA3f0osqUhiBXkQylnn0cygVKke88QW0tQMSQ8//3YqI tAEFVVzxJL97SrZ3LFOuxgtfxkvnQupnpWJnuGLMitT9Pt8o4kWrj8eka',
b = b.replace(/\s/g, '+'),
c = CryptoJS.AES.decrypt(b, e, {
iv: f,
mode: CryptoJS.mode.CBC
}),
c = CryptoJS.enc.Utf8.stringify(c),
a = c.split('#'),
g = CryptoJS.MD5(a[4] + a[0] + a[2] + a[3]);
return a[1];
}
var decrypted = aes();
console.log('Decrypted text: ' + decrypted);