Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A message digest library for Lua based on OpenSSL: MD2, MD4, MD5, SHA1, SHA2, RIPEMD160, MDC2
C Lua
Tree: 91e0703020

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
cmake cmake: add cmake/luadist build
.travis.yml Updated travis hook


This is a message digest library for Lua 5.1. It is based on the digest routines
provided by OpenSSL. The library can be built to compute the following digests:
md2, md4, md5, sha1, sha224, sha256, sha384, sha512, ripemd160, mdc2.
For more information on these digests, see

OpenSSL is available at
If you're running Unix, you probably already have OpenSSL installed.

If you have trouble finding C source code for MD5 or SHA1 digests that
does not depend on OpenSSL, please send me a note.

To try the library, edit Makefile to reflect your installation of Lua and
then run make. This will build the library and run a simple test.
For detailed installation instructions, see

There is no manual but the library is simple and intuitive; see the summary
below. Read also test.lua, which shows the library in action.

This code is hereby placed in the public domain.
Please send comments, suggestions, and bug reports to .


digest library:
 __tostring(c) 		 new() 			 version 
 clone(c) 		 reset(c) 
 digest(c or s,[raw]) 	 update(c,s) 

Something went wrong with that request. Please try again.