View previous topic :: View next topic |
Author |
Message |
Sting9x Expert Cheater Reputation: 0
Joined: 27 Jul 2016 Posts: 124
|
Posted: Tue May 08, 2018 6:32 am Post subject: How to cut string md5 ? |
|
|
This is my md5 code
Is there a way to make it display 8 characters?
|
|
Back to top |
|
|
TheyCallMeTim13 Wiki Contributor Reputation: 50
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Tue May 08, 2018 1:25 pm Post subject: |
|
|
Code: | local s = '1234567890'
return s:sub(0,8) |
_________________
|
|
Back to top |
|
|
Sting9x Expert Cheater Reputation: 0
Joined: 27 Jul 2016 Posts: 124
|
Posted: Tue May 08, 2018 5:32 pm Post subject: |
|
|
TheyCallMeTim13 wrote: | Code: | local s = '1234567890'
return s:sub(0,8) |
|
Thank you , not worl
Code: |
function getmd5()
local szmd5id = ""
---------MD5ID-----------------
local offset1 = readPointer(0x101F05A8) + 0x6B
local offset2 = readPointer(offset1) + 0x84A
local offset3 = readPointer(offset2) + 0x75
local offset4 = readPointer(offset3) + 0x6E
local offset5 = readPointer(offset4) + 0xA
local value = readString(offset5,20)
------------------------------
value = stringToMD5String(value)
local s = '1234567890'
return s:sub(0,8)
local szmd5 = "MD5 : "..value
showMessage(szmd5)
if not value then
smd5id = ""
end
szmd5id= value
return szmd5id;
end |
|
|
Back to top |
|
|
TheyCallMeTim13 Wiki Contributor Reputation: 50
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Tue May 08, 2018 5:49 pm Post subject: |
|
|
Code: | local s = '1234567890'
return s:sub(0,8) |
Code: | function getmd5()
local szmd5id = ''
local value = readString('[[[[[101F05A8]+6B]+84A]+75]+6E]+A', 20)
value = stringToMD5String(value)
local szmd5 = 'MD5 : ' .. value:sub(0, 8)
showMessage(szmd5)
szmd5id = value or ''
return szmd5id
end |
Code: | function getmd5()
local szmd5id = ''
local value = readString('[[[[[101F05A8]+6B]+84A]+75]+6E]+A', 20)
value = stringToMD5String(value)
local szmd5 = 'MD5 : ' .. value
showMessage(szmd5:sub(0, 16))
szmd5id = value or ''
return szmd5id
end |
_________________
|
|
Back to top |
|
|
Sting9x Expert Cheater Reputation: 0
Joined: 27 Jul 2016 Posts: 124
|
Posted: Wed May 09, 2018 8:08 am Post subject: |
|
|
TheyCallMeTim13 wrote: |
Code: | local s = '1234567890'
return s:sub(0,8) |
Code: | function getmd5()
local szmd5id = ''
local value = readString('[[[[[101F05A8]+6B]+84A]+75]+6E]+A', 20)
value = stringToMD5String(value)
local szmd5 = 'MD5 : ' .. value:sub(0, 8)
showMessage(szmd5)
szmd5id = value or ''
return szmd5id
end |
Code: | function getmd5()
local szmd5id = ''
local value = readString('[[[[[101F05A8]+6B]+84A]+75]+6E]+A', 20)
value = stringToMD5String(value)
local szmd5 = 'MD5 : ' .. value
showMessage(szmd5:sub(0, 16))
szmd5id = value or ''
return szmd5id
end |
|
Thank you , working
But it was not the same as expected , Maybe it's just a short on showMessage.
What I need is cut string md5 in value, Is there a way to accomplish it?
|
|
Back to top |
|
|
|