mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 20:06:37 +02:00
✨ Decrease slightly argon2id cost for improve usability
The previous values are set too high. The current value are still valid under current recomendation but improves a little bit the time of password verification.
This commit is contained in:
parent
a23d1908e9
commit
903f064e87
1 changed files with 4 additions and 5 deletions
|
@ -8,14 +8,13 @@
|
|||
(:require
|
||||
[app.config :as cf]
|
||||
[buddy.hashers :as hashers]
|
||||
[cuerdas.core :as str]
|
||||
[promesa.exec :as px]))
|
||||
[cuerdas.core :as str]))
|
||||
|
||||
(def default-params
|
||||
{:alg :argon2id
|
||||
:memory (* 32768 2) ;; 64 MiB
|
||||
:iterations 7
|
||||
:parallelism (px/get-available-processors)})
|
||||
:memory 32768 ;; 32 MiB
|
||||
:iterations 3
|
||||
:parallelism 2})
|
||||
|
||||
(defn derive-password
|
||||
[password]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue