Tell the user how many characters they supplied
This commit is contained in:
parent
f6f8aee433
commit
7746c295fb
|
@ -25,7 +25,8 @@
|
||||||
(defn -main [& args]
|
(defn -main [& args]
|
||||||
(let [seed-string (str/join "" args)]
|
(let [seed-string (str/join "" args)]
|
||||||
(when (>= 32 (count seed-string))
|
(when (>= 32 (count seed-string))
|
||||||
(throw (ex-info "key generation requires a seed string of >32 characters." {})))
|
(throw (ex-info "key generation requires a seed string of >= 32 characters."
|
||||||
|
{ :seed-length (count seed-string)})))
|
||||||
(-> seed-string
|
(-> seed-string
|
||||||
(string->seed)
|
(string->seed)
|
||||||
(generate-key)
|
(generate-key)
|
||||||
|
|
Loading…
Reference in New Issue