Commit 345c7a94 authored by Nicolas Lenz's avatar Nicolas Lenz

Tune down hash parameters again, oof

parent 5098fb71
......@@ -12,19 +12,19 @@ import Database.Persist.Sql (ConnectionPool, runSqlPool)
-- | Length of the salt in byte.
saltLength :: Int
saltLength = 32
saltLength = 16
-- | Length of the hash in byte.
hashLength :: Int
hashLength = 64
hashLength = 16
-- | Options for hashing.
hashOptions :: Argon2.Options
hashOptions = Argon2.Options {
Argon2.iterations = 1,
Argon2.memory = 64 * 1024, -- amount of KiBs, should equal 64 MiB
Argon2.memory = 32 * 1024, -- amount of KiBs, should equal 64 MiB
Argon2.parallelism = 2,
Argon2.variant = Argon2.Argon2i,
Argon2.variant = Argon2.Argon2id,
Argon2.version = Argon2.Version13
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment