[IPython-dev] Disabling Authentication for Kernels

Andrew Gibiansky andrew.gibiansky at gmail.com
Mon Mar 2 15:58:02 EST 2015


Thanks for the example.

Is the signature supposed to be in any way readable? I am getting something
like

\xf6\xd9hV\xea\xa0\xe1\x9cV\x9f"\xa5\x04\x8f\x87\x05\xd4=\xde\x04V4\xcc\x9eo\xcc/\x10\x92\x16I\x0f

Perhaps this is the issue?

On Mon, Mar 2, 2015 at 12:23 PM, Thomas Kluyver <takowl at gmail.com> wrote:

> On 2 March 2015 at 12:14, Andrew Gibiansky <andrew.gibiansky at gmail.com>
> wrote:
>
>> 1. What are good ways to debug this?
>>
>
> I don't know of any. Hash matching is an all or nothing thing - there's no
> way to tell if you're nearly correct.
>
>
>> 2. My suspicion is that I am treating the key incorrectly. If I
>> understand correctly, the provided key is something like
>> "base64-base64-base64". Is that string meant to be taken literally as the
>> key (when decoded from Utf8), or is the idea to do a base64 decoding of
>> that and use that as the key?
>>
>
> Taken literally, i.e. those ascii bytes are given to the HMAC function. I
> believe the key is actually a UUID.
>
> You can see a very simple but valid signing function I wrote recently here:
>
> https://github.com/takluyver/aiokernel/blob/master/aiokernel.py#L15
>
> Thomas
>
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150302/8e653bf6/attachment.html>


More information about the IPython-dev mailing list