mirror of
https://github.com/penpot/penpot.git
synced 2025-05-13 14:46:38 +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
|
(: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]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue