2018-03-02 8:54 GMT-03:00 Ben Coman <btc@openinworld.com>:
On 2 March 2018 at 10:43, Esteban A. Maringolo <emaringolo@gmail.com> wrote:
So after all this what's the recommended way to use HMAC-SHA512 in Pharo 6?
Libsodium installation instructions... https://github.com/Traadh/bittrex
Why did you create BittrexLibsodium library wrapper instead of a plain Libsodium wrapper like the one at http://smalltalkhub.com/#!/~tonyg/Crypto-Nacl/ ?
I'd need it in combination with PBKDF2 to replicate this Python call: PBKDF2(password, salt, iterations, macmodule=hmac, digestmodule=hashlib.sha512).read(64)
I guess with iterations=1 you should get the same result as libsodium I had to play around a bit before I worked out where to use bytes and where to use hex strings. It might help to run these test cases through PBKDF2... https://github.com/Traadh/bittrex/tree/master/src/Bittrex.package/BittrexLib...
Well, I need 2048 iterations. There is a PBKDF2 package made by Udo Schneider, and seems to be easily pluggable with a different hashing algorithm, so I'd need a SHA512 class. Thanks in advance. Regards. Esteban A. Maringolo