HMAC encription issue
Sergio Sanchez
sergio7654 at gmail.com
Sat Aug 31 11:16:24 EDT 2013
El sábado, 31 de agosto de 2013 16:48:53 UTC+2, Sergio Sanchez escribió:
> El sábado, 31 de agosto de 2013 16:39:08 UTC+2, Roy Smith escribió:
>
> > In article <3479e08e-d435-492b-b2a0-a1c18678f6ab at googlegroups.com>,
>
> >
>
> > sergio7654 at gmail.com wrote:
>
> >
>
> >
>
> >
>
> > > key="4545453030303743303134462035343733373432363420323031332D30382D33312031343A33353A3035"
>
> >
>
> > > key="4545453030303743303134462035343733373432363420323031332D30382D33312031343A33353A303$
>
> >
>
> >
>
> >
>
> > To start with, your keys are not the same (the JS one ends in "35", the Python one ends in "3$",
>
> >
>
> > and I don't know what to make of the fact that your Python key isn't terminated with a quote.
>
>
>
>
>
> Sorry, that was a problem with the cut & paste. The two sentences key="4545453030303743303134462035343733373432363420323031332D30382D33312031343A33353A3035" are just the same in Python and Javascript.
Solved:
key must be converted to binary with the function unhexlify(hexstr)
Thanks,
More information about the Python-list
mailing list