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:
Andrey Antukh 2023-09-04 10:55:57 +02:00
parent a23d1908e9
commit 903f064e87

View file

@ -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]