auth: base64-encode password hashes (digests)
This commit is contained in:
parent
22d9e88295
commit
f6b21f9a43
2 changed files with 7 additions and 4 deletions
|
@ -5,7 +5,8 @@
|
|||
(:local-nicknames (:config :scopes/config)
|
||||
(:core :scopes/core)
|
||||
(:shape :scopes/shape)
|
||||
(:util :scopes/util))
|
||||
(:util :scopes/util)
|
||||
(:b64 :qbase64))
|
||||
(:export #:config #:setup
|
||||
#:simple-credentials
|
||||
#:login))
|
||||
|
@ -71,5 +72,7 @@
|
|||
;;;; auxiliary functions
|
||||
|
||||
(defun digest (pw)
|
||||
(b64:encode-bytes
|
||||
(ironclad:digest-sequence
|
||||
:sha3/256 (flexi-streams:string-to-octets pw :external-format :utf8)))
|
||||
:sha3/256 (flexi-streams:string-to-octets pw :external-format :utf8))
|
||||
:scheme :uri))
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
:homepage "https://www.cyberconcepts.org"
|
||||
:description "Authentication services"
|
||||
:depends-on (:scopes
|
||||
:flexi-streams :ironclad)
|
||||
:flexi-streams :ironclad :qbase64)
|
||||
:components ((:file "auth"))
|
||||
:long-description "scopes framework: authentication services."
|
||||
;;#.(uiop:read-file-string
|
||||
|
|
Loading…
Add table
Reference in a new issue