Open dimankiev opened 4 years ago
The same in native node.js crypto module
When I tried to use <Buffer 18 a5 2d e7 b5 a1 bc 2b 04 62 37 a5 8a 5b 74 5b 2b 8d be 2b 66 34 17 9c 21 b4 f6 78 2a fd 65 82>
(Didn't make hash conversion to string) as secret, via crypto module, I've got the right hash.
Is there something wrong, or it's just lack of experience in using crypto-js ? :)
Mantap
When I tried to implement Telegram Login Widget to my web-service, I've experienced interesting issue:
HMAC SHA256 result hash mismatches the hash, given by Telegram's API, after completing all the instructions.
I tried to do the same operation (to receive this result hash) in Cryptii, and got the right hash ! But crypto-js HMAC function is still giving the wrong result
I tried to do that:
Using Cryptii HMAC
Using crypto-js HMAC
And I've got confused. What's wrong ?