[plt-scheme] Accessing openssl from MzScheme, sending control-c (end of text)

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Sat Jul 7 07:59:49 EDT 2007

Erich Rast wrote:
 > Hi,
 >
 > This is a possibly naive question, as I'm not all too familiar with
 > escape sequences, subprocesses, and shells. I'd like to compute an sha1
 > checksum of a utf8 string using openssl on OS X.

If sha1 is what you are after, it is easier to use one of
the PLaneT packages. For example:

   > (require (planet "digest.ss" ("soegaard" "digest.plt" 1 2)))
   > (sha1 #"Hello world")
   "7b502c3a1f48c8609ae212cdfb639dee39673f5e"

<http://planet.plt-scheme.org/display.ss?package=digest.plt&owner=soegaard>


The crypto package is also an option:

<http://planet.plt-scheme.org/package-source/vyzo/crypto.plt/1/5/doc.txt>

-- 
Jens Axel Søgaard



Posted on the users mailing list.