Dec 19, 2017; 8:17pmBill Lam wrote:
<http://jsoftware.2058.n7.nabble.com/template/NamlServlet.jtp?macro=user_nodes&user=21>
>Wouldn't it type less if 
> key=. 128{.x,128#{.a. 
> or 
> key=. 128{.!.({.a.)x

I was just happy to make it work at all!
Had totally forgotten about the bit manipulations possible in J
(remembered from the Lapack stuff) and was pretty surprised when it
worked first shot. Pretty sure it can be done in one line (or with
pointer magic to openSSL), but my j-judo not strong enough yet.

I often find nice bits like this in the j-programming archives, so maybe
some day someone else will need HMAC or want to build a RasPi TOPT thing.

-SL
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to