I was wondering if its possible to make anything like this in AutoIT
function toArr(str)
{
var ret = Array((str.length + 3) >> 2);
// String to array of 32 bit ints
for (var i = 0; i < str.length; i += 4)
{
// FYI:
// NaN << x === 0
// x | NaN === x
ret[i >> 2] =
(str.charCodeAt(i ) << 24) |
(str.charCodeAt(i+1) << 16) |
(str.charCodeAt(i+2) << 8) |
str.charCodeAt(i+3);
}
return ret;
}
function megaKdf(pw)
{
var pwkey = [0x93c467e3, 0x7db0c7a4, 0xd1be3f81, 0x0152cb56];
var arrPw = toArr(pw);