[IPython-dev] Disabling Authentication for Kernels

Andrew Gibiansky andrew.gibiansky at gmail.com
Mon Mar 2 15:14:43 EST 2015

Sounds reasonable. I sadly am not very well-versed in cryptographic
hashing, which is why I originally avoided dealing with it.

I've now implemented HMAC-SHA256 signing, but am generating invalid
signatures. So, two questions:

1. What are good ways to debug this?
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

-- Andrew

On Mon, Mar 2, 2015 at 9:33 AM, Thomas Kluyver <takowl at gmail.com> wrote:

> On 2 March 2015 at 00:23, Andrew Gibiansky <andrew.gibiansky at gmail.com>
> wrote:
>> Is there a way to disable authentication for a kernel via its
>> kernelspec/kernel.json? If not, is there any way around this issue other
>> than creating a custom profile (or biting the bullet and figuring out and
>> implementing authentication)?
> If your language has a working HMAC library, implementing the
> authentication should be trivial. Even in R, it wasn't hard:
> https://github.com/takluyver/IRkernel/blob/master/R/kernel.r#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/d5b72665/attachment.html>

More information about the IPython-dev mailing list