Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WMS Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Software
WMS Server
Commits
345c7a94
Commit
345c7a94
authored
Jan 23, 2020
by
Nicolas Lenz
❄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tune down hash parameters again, oof
parent
5098fb71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/Auth.hs
src/Auth.hs
+4
-4
No files found.
src/Auth.hs
View file @
345c7a94
...
...
@@ -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
.
Argon2i
d
,
Argon2
.
version
=
Argon2
.
Version13
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment