<div dir="ltr">Thanks for the example.<div><br></div><div>Is the signature supposed to be in any way readable? I am getting something like</div><div><br></div><div>\xf6\xd9hV\xea\xa0\xe1\x9cV\x9f"\xa5\x04\x8f\x87\x05\xd4=\xde\x04V4\xcc\x9eo\xcc/\x10\x92\x16I\x0f<br></div><div><br></div><div>Perhaps this is the issue?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 2, 2015 at 12:23 PM, Thomas Kluyver <span dir="ltr"><<a href="mailto:takowl@gmail.com" target="_blank">takowl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On 2 March 2015 at 12:14, Andrew Gibiansky <span dir="ltr"><<a href="mailto:andrew.gibiansky@gmail.com" target="_blank">andrew.gibiansky@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>1. What are good ways to debug this?</div></blockquote><div><br></div></span><div>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.<br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>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?</div></blockquote><div><br></div></span><div>Taken literally, i.e. those ascii bytes are given to the HMAC function. I believe the key is actually a UUID.<br><br>You can see a very simple but valid signing function I wrote recently here:<br><br></div><div><a href="https://github.com/takluyver/aiokernel/blob/master/aiokernel.py#L15" target="_blank">https://github.com/takluyver/aiokernel/blob/master/aiokernel.py#L15</a><span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>Thomas<br></div></font></span></div><br><br></div></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>