Skip to content

Commit

Permalink
Packaging version 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
carregal committed May 12, 2008
1 parent 65e7b90 commit c75e83e
Show file tree
Hide file tree
Showing 9 changed files with 95 additions and 23 deletions.
16 changes: 14 additions & 2 deletions README
@@ -1,12 +1,12 @@
MD5 - Cryptographic Library for Lua
Copyright 2003-2007 PUC-Rio
Copyright 2003 PUC-Rio
http://www.keplerproject.org/md5

MD5 offers basic cryptographic facilities for Lua 5.1: a hash (digest)
function, a pair crypt/decrypt based on MD5 and CFB, and a pair crypt/decrypt based
on DES with 56-bit keys.

MD5 current version is 1.1.1.
MD5 current version is 1.1.2.

To install on Linux/OSX/BSD, please edit the config file and then call

Expand All @@ -15,6 +15,18 @@ make install

The last step may require root privileges.

If you are using LuaRocks you can also install MD5 with:

luarocks install md5

History

Version 1.1.2 [12/May/2008]
* Fixed bug in 64-bit systems
* Fixed the Windows makefile to accept longer directory names
(patch by Alessandro Hecht and Ignacio Burgueño).


Please check the documentation at /doc/us/ for more information.

The DES 56 C library was implemented by Stuart Levy and uses a MIT license too (check the source)
20 changes: 16 additions & 4 deletions doc/us/index.html
Expand Up @@ -75,7 +75,7 @@ <h2><a name="overview"></a>Overview</h2>

<h2><a name="status"></a>Status</h2>

<p>MD5 version 1.1.1 for Lua 5.1 is now available for
<p>MD5 version 1.1.2 for Lua 5.1 is now available for
<a href="#download">download</a>.</p>

<h2><a name="download"></a>Download</h2>
Expand All @@ -84,13 +84,25 @@ <h2><a name="download"></a>Download</h2>
MD5 can be downloaded in source code from its
<a href="http://luaforge.net/projects/md5/files">LuaForge</a>
page. If you are using LuaBinaries 5.1.x, a Windows
precompiled version of MD5 can also be found at the same LuaForge page. MD5 has
been tested with Lua 5.1.2.
precompiled version of MD5 can also be found at the same LuaForge page.
</p>

<p>You can also install MD5 using <a href="http://www.luarocks.org">LuaRocks</a>:</p>

<pre class="example">
luarocks install md5
</pre>

<h2><a name="history"></a>History</h2>

<dl class="history">
<dt><strong>Version 1.1.2</strong> [12/May/2008]</dt>
<dd><ul>
<li>Fixed bug in 64-bit systems</li>
<li>Fixed the Windows makefile to accept longer directory names
(patch by Alessandro Hecht and Ignacio Burgue&ntilde;o).</li>
</ul></dd>

<dt><strong>Version 1.1.1</strong> [28/Nov/2007]</dt>
<dd>
<ul>
Expand Down Expand Up @@ -151,7 +163,7 @@ <h2><a name="contact"></a>Contact us</h2>

<div id="about">
<p><a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0!</a></p>
<p><small>$Id: index.html,v 1.19 2007/11/28 22:05:20 carregal Exp $</small></p>
<p><small>$Id: index.html,v 1.20 2008/05/12 20:51:27 carregal Exp $</small></p>
</div> <!-- id="about" -->

</div> <!-- id="container" -->
Expand Down
4 changes: 2 additions & 2 deletions doc/us/license.html
Expand Up @@ -88,7 +88,7 @@ <h2>License</h2>

<hr/>

<p>Copyright &copy; 2003-2007 PUC-Rio. All rights reserved.</p>
<p>Copyright &copy; 2003 PUC-Rio. All rights reserved.</p>

<p>Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -114,7 +114,7 @@ <h2>License</h2>

<div id="about">
<p><a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0!</a></p>
<p><small>$Id: license.html,v 1.8 2007/11/28 20:51:50 carregal Exp $</small></p>
<p><small>$Id: license.html,v 1.9 2008/05/12 20:51:27 carregal Exp $</small></p>
</div> <!-- id="about" -->

</div> <!-- id="container" -->
Expand Down
34 changes: 25 additions & 9 deletions doc/us/manual.html
Expand Up @@ -64,7 +64,7 @@ <h2><a name="introduction"></a>Introduction</h2>
<p>
MD5 offers basic cryptographic facilities for Lua 5.1:
a hash (digest) function, a pair crypt/decrypt based on MD5 and CFB,
and a pair crypt/decrypt based on DES with 56-bt keys.
and a pair crypt/decrypt based on DES with 56-bit keys.
</p>

<p>
Expand All @@ -75,27 +75,43 @@ <h2><a name="introduction"></a>Introduction</h2>
<h2><a name="building"></a>Building</h2>

<p>
MD5 offers a Makefile and a separate configuration file, <code>config</code>,
which should be edited to suit the particularities of the target platform
If you are using Unix MD5 offers a Makefile and a separate configuration file,
<code>config</code>, which should be edited to suit the particularities of the target platform
before running <code>make</code>.
The file has some definitions like paths to the external libraries,
compiler options and the like. One important definition is the Lua version,
which is not obtained from the installed software.
</p>

<p>
If you want to build MD5 on Windows MD5 offers the equivalent <code>config.win</code>
and <code>Makefile.win</code> files to be used with Microsoft Visual Studio 2005.
</p>

<h2><a name="installation"></a>Installation</h2>

<p>
There are two compiled binary files, core.so and des56.so. The first
should be copied to a directory called <code>md5</code>
in your
<a href="http://www.lua.org/manual/5.1/manual.html#pdf-package.cpath">C path</a>.
The easiest way to install MD5 is to use <a href="http://www.luarocks.org">LuaRocks</a>:
</p>

<pre class="example">
luarocks install md5
</pre>

<p>
If you prefer to install the files manually and are using Unix, the build generates
two compiled binary files, <code>core.so</code> and <code>des56.so</code>.
The first should be copied to a directory called <code>md5</code>
in your <a href="http://www.lua.org/manual/5.1/manual.html#pdf-package.cpath">C path</a>.
Just copy the second to a directory in your Lua C path.
</p>

<p>
Windows users can use the binary version of MD5 available at
<a href="http://luaforge.net/projects/md5/files">LuaForge</a>.</p>

<p>
The file <code>md5.lua</code> should be copied to a directory in your
In both Unix and Windows systems the file <code>md5.lua</code> should be copied to a directory in your
<a href="http://www.lua.org/manual/5.1/manual.html#pdf-package.path">Lua path</a>.
</p>

Expand Down Expand Up @@ -204,7 +220,7 @@ <h3><a name="c_api"></a>C API</h3>

<div id="about">
<p><a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0!</a></p>
<p><small>$Id: manual.html,v 1.13 2008/03/24 20:45:15 mascarenhas Exp $</small></p>
<p><small>$Id: manual.html,v 1.14 2008/05/12 20:51:27 carregal Exp $</small></p>
</div> <!-- id="about" -->

</div> <!-- id="container" -->
Expand Down
32 changes: 32 additions & 0 deletions rockspec/md5-1.1.2-1.rockspec
@@ -0,0 +1,32 @@
package = "MD5"
version = "1.1.2-1"
source = {
url = ""
}
description = {
summary = "Basic cryptographic library",
detailed = [[
MD5 offers basic cryptographic facilities for Lua 5.1: a hash (digest) function,
a pair crypt/decrypt based on MD5 and CFB,
and a pair crypt/decrypt based on DES with 56-bit keys.
]],
license = "MIT/X11",
homepage = "http://www.keplerproject.org/md5/"
}
dependencies = {
"lua >= 5.1"
}
build = {
type = "make",
variables = {
LUA_VERSION_NUM="501",
},
build_variables = {
LIB_OPTION = "$(LIBFLAG)",
CFLAGS = "$(CFLAGS) -I$(LUA_INCDIR)",
},
install_variables = {
LUA_LIBDIR = "$(LIBDIR)",
LUA_DIR = "$(LUADIR)"
}
}
2 changes: 1 addition & 1 deletion src/des56.def
@@ -1,5 +1,5 @@
LIBRARY des56.dll
DESCRIPTION "DES56"
VERSION 1.1.1
VERSION 1.1.2
EXPORTS
luaopen_des56
2 changes: 1 addition & 1 deletion src/ldes56.c
Expand Up @@ -133,7 +133,7 @@ static void set_info (lua_State *L) {
lua_pushliteral (L, "DES 56 cryptographic facilities for Lua");
lua_settable (L, -3);
lua_pushliteral (L, "_VERSION");
lua_pushliteral (L, "DES56 1.1.1");
lua_pushliteral (L, "DES56 1.1.2");
lua_settable (L, -3);
}

Expand Down
2 changes: 1 addition & 1 deletion src/md5.def
@@ -1,5 +1,5 @@
LIBRARY core.dll
DESCRIPTION "LuaMD5"
VERSION 1.1.1
VERSION 1.1.2
EXPORTS
luaopen_md5_core
6 changes: 3 additions & 3 deletions src/md5lib.c
@@ -1,5 +1,5 @@
/**
* $Id: md5lib.c,v 1.9 2007/11/28 21:22:47 carregal Exp $
* $Id: md5lib.c,v 1.10 2008/05/12 20:51:27 carregal Exp $
* Cryptographic and Hash functions for Lua
* @author Roberto Ierusalimschy
*/
Expand Down Expand Up @@ -175,13 +175,13 @@ static int decrypt (lua_State *L) {
*/
static void set_info (lua_State *L) {
lua_pushliteral (L, "_COPYRIGHT");
lua_pushliteral (L, "Copyright (C) 2003-2007 PUC-Rio");
lua_pushliteral (L, "Copyright (C) 2003 PUC-Rio");
lua_settable (L, -3);
lua_pushliteral (L, "_DESCRIPTION");
lua_pushliteral (L, "Basic cryptographic facilities");
lua_settable (L, -3);
lua_pushliteral (L, "_VERSION");
lua_pushliteral (L, "MD5 1.1.1");
lua_pushliteral (L, "MD5 1.1.2");
lua_settable (L, -3);
}

Expand Down

0 comments on commit c75e83e

Please sign in to comment.