http://gnuwin32.sourceforge.net/
Download and install the OpenSSL package.GnuWin32 provides ports of tools with a GNU or similar open source license, to MS-Windows (Microsoft Windows 95 / 98 / ME / NT / 2000 / XP / 2003 / Vista / 2008)
http://gnuwin32.sourceforge.net/packages.html
Edit file: C:\Program Files\newlisp\modules\cypto.lsp
(Note: For some strange historic reason, Windows "crypto.dll" is instead called "libeay32.dll")
Code: Select all
(context 'crypto)
; set library to path-name of the library on your platform OS
;
(set 'files '(
"C:/Program Files/gnuwin32/bin/libeay32.dll" ;<<< add this line
"/usr/lib/libcrypto.so"
"/usr/lib/libcrypto.so.0.9.8"
"/usr/lib/libcrypto.so.0.9.7"
"/usr/lib/libcrypto.so.0.9.6"
"/usr/lib/libcrypto.so.4"
"/usr/lib/libcrypto.dylib"
))
>(load (string (env "NEWLISPDIR") "/modules/crypto.lsp"))
;; expected result from module manual
;; (crypto:md5 "ABC") => "902fbdd2b1df0c4f70b4a5d23525e932"
> (crypto:md5 "ABC")
"902fbdd2b1df0c4f70b4a5d23525e932"
>
;; expected result from module manual
;; (crypto:sha1 "ABC") => "3c01bdbb26f358bab27f267924aa2c9a03fcfdb8"
> (crypto:sha1 "ABC")
"3c01bdbb26f358bab27f267924aa2c9a03fcfdb8"
>
-- xytroxon