ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Hash functions
  • Converting a hash in binary format into the hexadecimal format
  • Converting a hash in hexadecimal format into the binary format
HashFile (Example)
Converting a hash in binary format into the hexadecimal format
sHash_Binary is string = HashString(HA_SHA3_256, "C:\My files\FileA.txt")
sHash_Hex is string = BufferToHexa(sHash_Binary, NoGrouping)
Trace(sHash_Hex)
Converting a hash in hexadecimal format into the binary format
sHash_Hex is string = "918d40029ce4fc9702a62fdee8977b66b38b9ccf"
sHash_Binary is string = HexaToBuffer(sHash_Hex, NoGrouping)
IF HashCheckFile(HA_SHA_256, "C:\Temp\File.txt", sHash_Binary) = True THEN
Info("Hash OK")
END
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/06/2023

Send a report | Local help