mirror of
https://github.com/penpot/penpot.git
synced 2025-03-11 23:31:21 -05:00
⬆️ Upgrade bunny hash and sign
This commit is contained in:
parent
3cb111f4a2
commit
6692b19d7e
4 changed files with 5 additions and 4 deletions
|
@ -28,8 +28,8 @@
|
|||
:exclusions [org.clojure/tools.reader]]
|
||||
[niwinz/migrante "0.1.0"]
|
||||
|
||||
[buddy/buddy-sign "1.4.0"]
|
||||
[buddy/buddy-hashers "1.2.0"]
|
||||
[buddy/buddy-sign "2.2.0"]
|
||||
[buddy/buddy-hashers "1.3.0"]
|
||||
|
||||
[org.xerial.snappy/snappy-java "1.1.2.6"]
|
||||
[com.github.spullara.mustache.java/compiler "0.9.4"]
|
||||
|
|
|
@ -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)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue