Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

HashString

$
0
0
I have a string, 's_ToHash', populated with 3 values which when concatenated produce the string 123456789AAA3321-12BH-A2200001

I need to create an MD5 hash of that and I require the value of 507c9d79c192da6e86428919ee0382dc to be returned

WinDev returns, depending on which HashString algorithm I use either

HashString(HA_MD5_128,s_ToHash) returns 'P|yÁ’Ún†B‰<25>î<3>‚Ü'
or
HashString(HA_HMAC_MD5_128,s_ToHash) returns ')v_dÂIÊY49ñœi2éá'

The returned value is the same regardless of whether I use a Buffer or String to receive the result

I tried inputing my string into a number of online MD5 generators and all returned the ASCII result I require.

Anyone have any idea how I can convert,progamatically, the WD result into the one I need, i.e ASCII text.

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>