Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How to cut string md5 ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Sting9x
Expert Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 105

PostPosted: Tue May 08, 2018 6:32 am    Post subject: How to cut string md5 ? Reply with quote

This is my md5 code

Is there a way to make it display 8 characters?
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 15

Joined: 24 Feb 2017
Posts: 445
Location: 'Merica

PostPosted: Tue May 08, 2018 1:25 pm    Post subject: Reply with quote

Code:
local s = '1234567890'
return s:sub(0,8)

_________________
Back to top
View user's profile Send private message
Sting9x
Expert Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 105

PostPosted: Tue May 08, 2018 5:32 pm    Post subject: Reply with quote

TheyCallMeTim13 wrote:
Code:
local s = '1234567890'
return s:sub(0,8)

Thank you , not worl Sad

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
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 15

Joined: 24 Feb 2017
Posts: 445
Location: 'Merica

PostPosted: Tue May 08, 2018 5:49 pm    Post subject: Reply with quote


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
View user's profile Send private message
Sting9x
Expert Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 105

PostPosted: Wed May 09, 2018 8:08 am    Post subject: Reply with quote

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? Sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites