The core is a hmac sha-1 hash. Unfortunately these pages here always show different results than
https://github.com/jNizM/AHK_CNG/blob/master/src/v1.1_deprecated/functions/bcrypt_sha1_hmac.ahk
Since I think jNizM results are correct, I'm probably missing something. Maybe someone can help me.
https://cable.ayra.ch/totp/
https://medium.com/concerning-pharo/the-code-behind-google-authenticator-9c59c606a572
Here is the example from the former site:
Code: Select all
a:="HXDMVJECJJWSRB3HWIZR4IFUGFTMXBOZ" ;Base32 encoded
b:="3DC6CAA4824A6D288767B2331E20B43166CB85D9" ;as hex decoded
secret:=0000000002EFD5B8
MsgBox % bcrypt_sha1_hmac(a,secret) ; =>550c552709874a9fdd11f4079ed203e9a4d99d97
MsgBox % bcrypt_sha1_hmac(b,secret) ;=>bee26e59eee4122ff0d50b3d085e53c90e758c25
Maybe someone can help me.