Compare commits
2
Commits
4f89fede56
..
0.9.4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79b72fccca | ||
|
|
5843695a40 |
@@ -44,12 +44,15 @@
|
||||
[options arguments action-type]
|
||||
(let [message (:message options)
|
||||
key (->> (cs/split (:key options) #",")
|
||||
(map #(Integer/parseInt %)))
|
||||
(map #(Integer/parseInt %))
|
||||
(into []))
|
||||
symbols (:symbols options)]
|
||||
(cond
|
||||
(= action-type :encrypt)
|
||||
(gamma/encrypt-message key symbols message)
|
||||
)))
|
||||
|
||||
(= action-type :decrypt)
|
||||
(gamma/decrypt-message key symbols message))))
|
||||
|
||||
(defn cryptography-actions
|
||||
[options arguments action-type]
|
||||
|
||||
Reference in New Issue
Block a user