Two hours later :p Finally got it working, the bighexdec that is :) Thanks again Brucey, your module saved my day!
Local key$ = "0xc48840545531b0c3fee627c46f13bc5a36c05e120685150f2fc8aff7a9f50f45" Print bighexdec(key) Function bighexdec$(x$) If Mid(x,0,3) <> "0x" Print "Start of key aint '0x'." ; Return Local r:TMAPM = New TMAPM Local q = Len(x)-1 For Local p = q To 2 Step -1 Local power:TMAPM = New TMAPM.Create(q-p) Local powresult:TMAPM = New TMAPM.Create(16) powresult = powresult.pow(power,160) Local decresult = hexdec(Chr(x[p])) Local mulresult:TMAPM = New TMAPM.Create(decresult) mulresult = mulresult.multiply(powresult) Local addvalue:TMAPM = New TMAPM.Create(r.tostring()) r = addvalue.add(mulresult) Next Local result$ = r.tostring() Return Left(result, Len(result)-2) 'return result with no '.0' EndFunction