Re: [racket] Can't figure out how to use module after raco planet fileinject

2012-05-22 Thread Shawn Smith
Never mind, asumu on #racket mentioned I need to use provide in the module. I will do that. Shawn On Tue, May 22, 2012 at 11:28 AM, Shawn Smith wrote: > Hi, > > I created a planet archive locally with raco planet create, then I > installed it into my local cache with raco plane

[racket] Can't figure out how to use module after raco planet fileinject

2012-05-22 Thread Shawn Smith
Hi, I created a planet archive locally with raco planet create, then I installed it into my local cache with raco planet fileinject. All I've written in Dr Racket so far is: (require (planet "something.rkt" ("shawnps" "something-racket.plt" 1 1))) and it runs fine. I can see it in the module b

Re: [racket] string->bytes/locale on an HMAC-SHA1 hash returns error

2012-05-15 Thread Shawn Smith
ompletely different: '46b4ec586117154dacd49d664e5d63fdc88efb51' Does anyone have any idea what's going on here? Shawn On Sun, May 13, 2012 at 7:18 PM, Shawn Smith wrote: > Hi, > > I'm trying to generate a SHA1 hash using a private key and a given string, > like so:

Re: [racket] string->bytes/locale on an HMAC-SHA1 hash returns error

2012-05-14 Thread Shawn Smith
Hi Norman, Thanks, that looks great. I'll give it a shot. Shawn On Mon, May 14, 2012 at 2:23 AM, Norman Gray wrote: > > Shawn, hello. > > On 2012 May 14, at 09:12, Shawn Smith wrote: > > > I guess I've tracked the problem down to the fact that the Racket hash i

Re: [racket] string->bytes/locale on an HMAC-SHA1 hash returns error

2012-05-14 Thread Shawn Smith
quot;) "dgst" "-sha1" "-hex" "-hmac" #"mysecretkey" On M

Re: [racket] string->bytes/locale on an HMAC-SHA1 hash returns error

2012-05-14 Thread Shawn Smith
2409c6b73ed11af9d2076e4588 I'm not sure how to get Racket to do this as well. Does anyone know? On Sun, May 13, 2012 at 9:32 PM, Veer Singh wrote: > In racket you are applying function "base64-encode" and in python you are > not. > > Sorry if I didn't get your q

Re: [racket] string->bytes/locale on an HMAC-SHA1 hash returns error

2012-05-13 Thread Shawn Smith
;, 'bar', sha1).hexdigest() Returns something completely different: '46b4ec586117154dacd49d664e5d63fdc88efb51' Does anyone have any idea what's going on here? On Sun, May 13, 2012 at 9:01 PM, Shawn Smith wrote: > I've gotten a bit of help in #racket on freenode so far, b

[racket] string->bytes/locale on an HMAC-SHA1 hash returns error

2012-05-13 Thread Shawn Smith
Hi, I'm trying to generate a SHA1 hash using a private key and a given string, like so: (define a-hash (HMAC-SHA1 (string->bytes/locale "foo") (string->bytes/locale "bar"))) This returns bytes, but when I try to turn those bytes into a string with: (bytes->string/locale a-hash) I get: bytes->