diff options
author | Richard Ipsum <richardipsum@fastmail.co.uk> | 2017-06-03 20:58:03 +0100 |
---|---|---|
committer | Richard Ipsum <richardipsum@fastmail.co.uk> | 2017-06-05 21:29:23 +0100 |
commit | 5fcf093b8a8880bda56e0b9afe0dee8e9927c4c5 (patch) | |
tree | d0e01ad3c4a2581931c5c02f2328f69e1309ba01 | |
parent | f848a19d352121a00b8526ed5c2ec60330e25ab2 (diff) | |
download | lua-scrypt-git-5fcf093b8a8880bda56e0b9afe0dee8e9927c4c5.tar.gz |
README: add build instructions
-rw-r--r-- | README | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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 ====== |