I have the following javascript code CryptoJS to encrypt the variable n
:
var l;
var n="190.207.78.120";
return l=D.enc.Base64.parse(btoa("AD7552C821266C8255348F726CAB9589")),D.AES.encrypt(n,l,{mode:D.mode.ECB,padding:D.pad.Pkcs7}).toString();
Output:
IV9Ada02dMtXNr8zDfZDUA==
The variable l
is my password but when I try to display it with console.log(l)
it is an object:
sigBytes:32, words: [1094989621, 892486456, 842084918, 910374962, 892678964, 944125746, 910377282, 959789113]
In the same way I can decrypt with the following code:
var l;
var n="IV9Ada02dMtXNr8zDfZDUA==";
return l=D.enc.Base64.parse(btoa("AD7552C821266C8255348F726CAB9589")),D.AES.decrypt(n,l,{mode:D.mode.ECB,padding:D.pad.Pkcs7}).toString(D.enc.Utf8);
Output:
190.207.78.120
How can I extract the password with which the variable n
is encrypted or decrypted?