summaryrefslogtreecommitdiff
path: root/example.lua
diff options
context:
space:
mode:
Diffstat (limited to 'example.lua')
-rw-r--r--example.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/example.lua b/example.lua
index a38f811..a600ad7 100644
--- a/example.lua
+++ b/example.lua
@@ -14,7 +14,7 @@ time "Generate hash2"
assert(hash1 ~= hash2) -- hashes are salted
-local hash3 = scrypt.hash_password("Hello", 2^16, 8, 1)
+local hash3 = scrypt.hash_password("Hello", 2^15, 8, 1)
time "Generate hash3"
assert(scrypt.verify_password(hash1, "Hello"))
@@ -28,3 +28,6 @@ time "Verify hash3 with correct password"
assert(scrypt.verify_password(hash3, "World") == false)
time "Verify hash3 with incorrect password"
+
+local hash4 = scrypt.hash_password("Hello")
+time "Generate hash 4, default N/r/p"