mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
⬆️ Upgrade bunny hash and sign
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
(when-not secret
|
||||
(ex/raise :code ::missing-secret-key
|
||||
:message "Missing `:secret` key in config."))
|
||||
(hash/blake2b-256 secret)))
|
||||
(hash/blake2b-512 secret)))
|
||||
|
||||
(defstate secret
|
||||
:start (initialize-secret config))
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
[buddy.hashers :as hashers]
|
||||
[buddy.sign.jwt :as jwt]
|
||||
[buddy.core.hash :as hash]
|
||||
[clj-ldap.client :as ldap]
|
||||
[uxbox.config :as cfg]
|
||||
[uxbox.util.spec :as us]
|
||||
[uxbox.db :as db]
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
using urlsafe variant of base64."
|
||||
[]
|
||||
(-> (nonce/random-bytes 1024)
|
||||
(hash/blake2b-256)
|
||||
(hash/blake2b-512)
|
||||
(b64/encode true)
|
||||
(codecs/bytes->str)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user