Peter,
>Is there any way I can use the sha3 (512 bits) algorithm in xbase++?
You can use Char2Hash(cString, HASH_SHA3) or Set Hash HASH_SHA3 followed by
Char2Hash(cString), which is available since Version 2.00.951, which was
released 05/30/2018.
If you need SHA512 (rather than SHA3-512), you can instead use Xb2Net's
XbHash(SHA512, cString), and if you need a Hex String from that, you can
use XbTool's StrToHex() or OT4Xb's cBin2Hex() functions, as in:
StrToHex(XbHash(SHA512, cString))
cBin2Hex(XbHash(SHA512, cString))
Hope that helps,
Andreas
Andreas Gehrs-Pahl
Absolute Software, LLC
phone: (989) 723-9927
email: Andreas@AbsoluteSoftwareLLC.com
web: http://www.AbsoluteSoftwareLLC.com
[F]: https://www.facebook.com/AbsoluteSoftwareLLC