hmac module and key format

Paul Rubin no.email at nospam.invalid
Sun Feb 20 07:01:20 EST 2011


Stuart Longland <redhatter at gentoo.org> writes:
> What format does hmac require the key to be in?

It's an arbitrary string.  

    I have a key in hexadecimal, do I give it the hex?  Do I decode that
    to binary and give it that?  

Probably yes.  Do you have test vectors?  See if they work.



More information about the Python-list mailing list