File tree Expand file tree Collapse file tree 10 files changed +6
-13
lines changed
Expand file tree Collapse file tree 10 files changed +6
-13
lines changed Original file line number Diff line number Diff line change 99 crypto-password/crypto-password {:mvn/version " 0.3.0" }
1010 com.lambdaworks/scrypt {:mvn/version " 1.4.0" }
1111 de.mkammerer/argon2-jvm {:mvn/version " 2.12" }
12- ; crypto-password/crypto-password {:git/url "https://github.com/Flexiana/crypto-password"
13- ; :sha "cfd90d519e09797a97ded565a1e27c0b938771f1"}
12+ ; ; crypto-password/crypto-password {:git/url "https://github.com/Flexiana/crypto-password"
13+ ; ; :sha "cfd90d519e09797a97ded565a1e27c0b938771f1"}
1414 funcool/cuerdas {:mvn/version " 2023.11.09-407" }
1515 info.sunng/ring-jetty9-adapter {:mvn/version " 0.37.3" }
1616 metosin/malli {:mvn/version " 0.17.0" }
Original file line number Diff line number Diff line change 2121 :parallelization 1 }
2222 :pbkdf2-settings {:type :sha1 ; Available values: :sha1 and :sha256
2323 :iterations 100000 }}}
24-
Original file line number Diff line number Diff line change 1212
1313 :xiana/web-server {:port 3000
1414 :join? false }}
15-
Original file line number Diff line number Diff line change 11{:xiana/web-server {:port 3333
22 :join? false }}
3-
Original file line number Diff line number Diff line change 88 :password " postgres" }
99 :xiana/web-server {:port 3000
1010 :join? false }}
11-
Original file line number Diff line number Diff line change 2121 :parallelization 1 }
2222 :pbkdf2-settings {:type :sha1 ; Available values: :sha1 and :sha256
2323 :iterations 100000 }}}
24-
Original file line number Diff line number Diff line change 22 " Functions for encrypting passwords using the recommended argon2 algorithm.
33 See: https://infosecscout.com/best-algorithm-password-storage
44 https://github.com/phxql/argon2-jvm"
5- (:import (de.mkammerer.argon2 Argon2Factory)))
5+ (:import
6+ (de.mkammerer.argon2
7+ Argon2Factory)))
68
79(import '(de.mkammerer.argon2 Argon2Factory))
810
1719(def ^:private default-parallelization-parameter
1820 (Long/parseLong (System/getProperty " crypto.password.argon2.default-parallelization-parameter" " 1" )))
1921
20-
2122(defn encrypt
2223 " Encrypt a password string using the argon2 algorithm. This function takes
2324 three optional parameters:
Original file line number Diff line number Diff line change 44 [clojure.string :as str]
55 [jsonista.core :as j]
66 [reitit.core :as r]
7- [taoensso.timbre :as log]
87 [ring.websocket :as ringws]
8+ [taoensso.timbre :as log]
99 [xiana.interceptor.queue :as queue]))
1010
11-
1211(def send! ringws /send )
1312(def close! ringws /close )
1413
Original file line number Diff line number Diff line change 2727 leave (:leave kc/interceptor)
2828 result (leave state)]
2929 (is (= expected result)))))
30-
Original file line number Diff line number Diff line change 9797 expected helpers/not-found]
9898 ; ; verify if action has the expected value
9999 (is (= action expected))))
100-
You can’t perform that action at this time.
0 commit comments