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 (:require
[app.config :as cf] [app.config :as cf]
[buddy.hashers :as hashers] [buddy.hashers :as hashers]
[cuerdas.core :as str] [cuerdas.core :as str]))
[promesa.exec :as px]))
(def default-params (def default-params
{:alg :argon2id {:alg :argon2id
:memory (* 32768 2) ;; 64 MiB :memory 32768 ;; 32 MiB
:iterations 7 :iterations 3
:parallelism (px/get-available-processors)}) :parallelism 2})
(defn derive-password (defn derive-password
[password] [password]