Table of Contents

  1. Introduction
    1. Downloads
  2. Requirements
  3. Installation
  4. Credits
  5. Usage

Introduction

This project provides Lua bindings for the OpenSSL crypto libraries. libcrypto provides digest functions, such as MD5, SHA-1, and HMAC; cipher functions, such as RC5 and Blowfish; public key crypto, such as RSA and Diffie-Hellman; and some other assorted tools (i.e. random number generation).

Currently only the digest functions are mapped by this Lua binding.

Downloads

The latest version of luacrypto is 0.1.1, written by Keith Howe <nezroy@luaforge.net>

Requirements

Installation

Edit the "config" file and set the following fields to the correct values for your environment:

Once configured, run make to build the libraries. Run make install to install the libraries in the correct location. The install will run a test suite if you have set the location of your Lua interpreter. You can run the tests independently with make tests, but you cannot run the tests until after you have run make install.

Credits

Much of this code was heavily inspired by and/or lifted directly from the lmd5 project, written by Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>.

The Compat-5.1 library written by the folks at the Kepler Project is also included for Lua 5.0 support.

Usage

See the documentation for more info.