P. 1
PicoLisp by Example

PicoLisp by Example

|Views: 4,230|Likes:
Published by tj64
More than 600 PicoLisp solutions for Rosetta Code programming tasks from a wide range of topics, written by Alexander Burger (the creator of PicoLisp) himself - plus the complete PicoLisp function reference. Learn a fascinating programming language that maximises expressive power while minimizing complexity 'by Example'.
More than 600 PicoLisp solutions for Rosetta Code programming tasks from a wide range of topics, written by Alexander Burger (the creator of PicoLisp) himself - plus the complete PicoLisp function reference. Learn a fascinating programming language that maximises expressive power while minimizing complexity 'by Example'.

More info:

Published by: tj64 on Aug 23, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

08/09/2014

pdf

text

original

MD5

Encode a string using an MD5 algorithm. The algorithm can be found on
wikipedia.

Optionally, validate your implementation by running all of the test values in
IETF RFC (1321) for MD5. Additional the RFC provides more precise infor-
mation on the algorithm than the Wikipedia article.

If the solution on this page is a library solution, see MD5/Implementation for
an implementation from scratch.

(let Str "The quick brown fox jumped over the lazy dog’s back"

(pack

(mapcar ’((B) (pad 2 (hex B)))
(native "libcrypto.so" "MD5" ’(B . 16) Str (length Str) ’(NIL (16))) ) ) )

Output:

-> "E38CA1D920C4B8B8D3946B2C72F01680"

541

542

15 Rosetta Code Tasks starting with M

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->