SHA1 / SHA256 Message Authentication
Posted: Tue Dec 19, 2017 8:09 pm
Everyone,
I am trying to make a web call to an API end for a online file transfer site that we use (FileGenius). They require all API calls to be signed using your API key and secret. The Secret needs to be hashed using SHA1, which then gets fed into the SHA256 HMAC signature along with a couple other parameters.
I am totally at a loss on where to start on this one. I have tried using the generateSignature function of a ByteArray, but cant seem to get what I want out of it. I suspect that is due to the fact that Switch is encoding the SHA1 hash with ASN.1, and then encrypting the that data.
I just need to get some message hashes.
Any thoughts?
Thanks,
David
I am trying to make a web call to an API end for a online file transfer site that we use (FileGenius). They require all API calls to be signed using your API key and secret. The Secret needs to be hashed using SHA1, which then gets fed into the SHA256 HMAC signature along with a couple other parameters.
I am totally at a loss on where to start on this one. I have tried using the generateSignature function of a ByteArray, but cant seem to get what I want out of it. I suspect that is due to the fact that Switch is encoding the SHA1 hash with ASN.1, and then encrypting the that data.
I just need to get some message hashes.
Any thoughts?
Thanks,
David