Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

generate md5 hash

Featured Replies

  • Author
  • Localization

chrrox, posted Mon Apr 15, 2019 8:01 pm (46979)


What is the correct way to generate an md5 hash on a file or sting in quickbms.
I tried.
Code:
set TMP string dolls.prd.cdn/76000
encryption md5 ""
string TMP e TMP
print "%TMP%"
  • Author
  • Localization

aluigi, posted Mon Apr 15, 2019 9:25 pm (46982)


That method is perfect, remember to use 'E' instead of 'e' since you have a string there.

Other examples:
Code:
set VAR string "hello world"

# method 1
strlen VARSZ VAR
encryption md5 VAR "" 0 VARSZ
print "%QUICKBMS_HEXHASH%"

# method 2
encryption md5 ""
string TMP E VAR
print "%QUICKBMS_HEXHASH%"

# method 3
strlen VARSZ VAR
log MEMORY_FILE 0 0
putdstring VAR VARSZ MEMORY_FILE
encryption md5 ""
log MEMORY_FILE 0 VARSZ MEMORY_FILE
print "%QUICKBMS_HEXHASH%"

# method 4
log MEMORY_FILE 0 0
encryption md5 ""
filecrypt 1
putct VAR string -1 MEMORY_FILE
filecrypt 0
print "%QUICKBMS_HEXHASH%"

Obviously use QUICKBMS_HASH for the non-hex data.
  • Author
  • Localization

chrrox, posted Mon Apr 15, 2019 11:19 pm (46989)


Thanks that worked good how would I convert this to a string

set CDN string "dolls.prd.cdn/"
set VERSION string "76000"
set TMP string CDN
string TMP VERSION
encryption md5 ""
string TMP E= TMP # 'E' is different than 'e'!

Code:
print "%QUICKBMS_HASH|x%"
string TEST b QUICKBMS_HASH
string TEST - -32
print "%TEST%"
set TEST2 TEST
string TEST2 - -1
print "%TEST2%"
string TEST < TEST2
print "%TEST%"
string TEST3 = TEST
print "%TEST3%"
encryption md5 ""
string TEST3 E= TEST3 # 'E' is different than 'e'!
print "%QUICKBMS_HASH|x%"

this does not give me the output abd513b6a9e1f9809b4416979bf760e2
but if i do
Code:
set TEST3 string 7F794CF201D7F785E9997E34826B87F
encryption md5 ""
string TEST3 E= TEST3 # 'E' is different than 'e'!
print "%QUICKBMS_HASH|x%"

i get abd513b6a9e1f9809b4416979bf760e2

also if there is a better way to do this operation let me know.
i am trying to
take md5 of dolls.prd.cdn/76000
take 1st number of that
subtract that from the md5 start
then generate the md5 hash of that result.

so in this case
17f794cf201d7f785e9997e34826b87f
then i split off the 1
7f794cf201d7f785e9997e34826b87f
then that md5 hash is
abd513b6a9e1f9809b4416979bf760e2
  • Author
  • Localization

aluigi, posted Tue Apr 16, 2019 11:46 am (47001)


Don't mix binary and text/hex data or it will be a mess.
If you need to use binary data it's better if you dump it in a memory file.
  • Author
  • Localization

aluigi, posted Tue Apr 16, 2019 11:51 am (47002)


Here we go:
Code:
set CDN string "dolls.prd.cdn/"
set VERSION string "76000"
set TMP string CDN
string TMP VERSION

encryption md5 ""
string TMP E TMP

string QUICKBMS_HEXHASHL << 1

encryption md5 ""
string TMP E QUICKBMS_HEXHASHL

print "%QUICKBMS_HEXHASHL%"
  • Author
  • Localization

aluigi, posted Tue Apr 16, 2019 11:53 am (47003)


And this is an alternative solution:
Code:
set CDN string "dolls.prd.cdn/"
set VERSION string "76000"
set TMP string CDN
string TMP VERSION

strlen VARSZ TMP
encryption md5 TMP "" 0 VARSZ

string QUICKBMS_HEXHASHL << 1

strlen VARSZ QUICKBMS_HEXHASHL
encryption md5 QUICKBMS_HEXHASHL "" 0 VARSZ

print "%QUICKBMS_HEXHASHL%"
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.