summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2015-07-08 20:59:06 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2015-07-08 20:59:06 +0100
commit4e0ed16d7cce90d61118db52c06c507772177714 (patch)
tree5bf747ab81b3120492236bad84c156290a61857f /README
parentae93d67950256ceefa606ab59f7b8ba193981dca (diff)
downloadlua-scrypt-git-4e0ed16d7cce90d61118db52c06c507772177714.tar.gz
Add ldoc based documentation
Diffstat (limited to 'README')
-rw-r--r--README22
1 files changed, 22 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..9bed714
--- /dev/null
+++ b/README
@@ -0,0 +1,22 @@
+lua-scrypt
+==========
+
+lua-scrypt is a binding to libscrypt which is a password crypting and
+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"))
+
+Thanks
+======
+
+Originally, [Rob Kendrick][] wrote `lua-scrypt` back when there wasn't a shared
+library for the scrypt algorithm. The returned values were binary and a bit
+messy, and as such they are not supported by this version of the library.
+
+[libscrypt]: https://github.com/technion/libscrypt
+[Rob Kendrick]: http://www.rjek.com/