From 5fcf093b8a8880bda56e0b9afe0dee8e9927c4c5 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Sat, 3 Jun 2017 20:58:03 +0100 Subject: README: add build instructions --- README | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README b/README index 9bed714..281956d 100644 --- a/README +++ b/README @@ -6,11 +6,26 @@ verification library. lua-scrypt uses the [libscrypt][] library and provides a simple interface for hashing and verifying passwords. local scrypt = require "scrypt" - + local hash = scrypt.hash_password("Hello world") assert(scrypt.verify_password(hash, "Hello world")) +Installation +============ + +To compile lua-scrypt, on platforms with libscrypt 1.21 or later run, + + $ make CFLAGS+=-DTRUST_LIBSCRYPT_SALT_GEN + +for platforms with older versions (earlier than 1.21) of libscrypt run, + + $ make + +To install lua-scrypt, run, + + $ make install + Thanks ====== -- cgit v1.2.1