-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
38 lines (30 loc) · 1.55 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
http://en.wikipedia.org/wiki/MD2_(cryptography)
http://en.wikipedia.org/wiki/MD4
http://en.wikipedia.org/wiki/MD5
http://en.wikipedia.org/wiki/SHA_hash_functions
http://en.wikipedia.org/wiki/RIPEMD-160
http://en.wikipedia.org/wiki/MDC2
http://en.wikipedia.org/wiki/Message_digest
OpenSSL is available at
http://www.openssl.org/
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
http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/install.html
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 [email protected] .
-------------------------------------------------------------------------------
digest library:
__tostring(c) new() version
clone(c) reset(c)
digest(c or s,[raw]) update(c,s)
-------------------------------------------------------------------------------