⬆️ 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

@ -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))

View file

@ -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]

View file

@ -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)))