Alaska Software Inc. - Sha3 512 algorithm?
Username: Password:
AuthorTopic: Sha3 512 algorithm?
Peter NagySha3 512 algorithm?
on Mon, 20 Jan 2020 10:11:27 +0100
Hi!

Is there any way I can use the sha3 (512 bits) algorithm in xbase++?

Thank you!
Peter
Peter AlderliestenRe: Sha3 512 algorithm?
on Sat, 25 Jan 2020 15:58:59 +0100
Peter,

> Is there any way I can use the sha3 (512 bits) algorithm in xbase++?

I believe that Jack Duijf has been working on this some time ago.

Peter
Andreas Gehrs-Pahl
Re: Sha3 512 algorithm?
on Sun, 26 Jan 2020 07:01:52 -0500
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