0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 07:41:43 -05:00

⬆️ Upgrade bunny hash and sign

This commit is contained in:
mathieu.brunot 2019-02-16 20:43:37 +01:00
parent 3cb111f4a2
commit 6692b19d7e
No known key found for this signature in database
GPG key ID: 81584BEAF692D7E0
4 changed files with 5 additions and 4 deletions

View file

@ -28,8 +28,8 @@
:exclusions [org.clojure/tools.reader]] :exclusions [org.clojure/tools.reader]]
[niwinz/migrante "0.1.0"] [niwinz/migrante "0.1.0"]
[buddy/buddy-sign "1.4.0"] [buddy/buddy-sign "2.2.0"]
[buddy/buddy-hashers "1.2.0"] [buddy/buddy-hashers "1.3.0"]
[org.xerial.snappy/snappy-java "1.1.2.6"] [org.xerial.snappy/snappy-java "1.1.2.6"]
[com.github.spullara.mustache.java/compiler "0.9.4"] [com.github.spullara.mustache.java/compiler "0.9.4"]

View file

@ -77,7 +77,7 @@
(when-not secret (when-not secret
(ex/raise :code ::missing-secret-key (ex/raise :code ::missing-secret-key
:message "Missing `:secret` key in config.")) :message "Missing `:secret` key in config."))
(hash/blake2b-256 secret))) (hash/blake2b-512 secret)))
(defstate secret (defstate secret
:start (initialize-secret config)) :start (initialize-secret config))

View file

@ -10,6 +10,7 @@
[buddy.hashers :as hashers] [buddy.hashers :as hashers]
[buddy.sign.jwt :as jwt] [buddy.sign.jwt :as jwt]
[buddy.core.hash :as hash] [buddy.core.hash :as hash]
[clj-ldap.client :as ldap]
[uxbox.config :as cfg] [uxbox.config :as cfg]
[uxbox.util.spec :as us] [uxbox.util.spec :as us]
[uxbox.db :as db] [uxbox.db :as db]

View file

@ -17,7 +17,7 @@
using urlsafe variant of base64." using urlsafe variant of base64."
[] []
(-> (nonce/random-bytes 1024) (-> (nonce/random-bytes 1024)
(hash/blake2b-256) (hash/blake2b-512)
(b64/encode true) (b64/encode true)
(codecs/bytes->str))) (codecs/bytes->str)))