Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dab131a32e | ||
|
|
f465d1112e |
@@ -32,7 +32,7 @@
|
|||||||
(option-values-as-row "Ciphers" cipher-options))
|
(option-values-as-row "Ciphers" cipher-options))
|
||||||
|
|
||||||
(def analyzers-options
|
(def analyzers-options
|
||||||
{"Caesar" #{"Chi^2" "Frequency"}})
|
{"Caesar" #{"Chi^2"}})
|
||||||
|
|
||||||
(defn get-available-analyzers-options-as-string
|
(defn get-available-analyzers-options-as-string
|
||||||
"Return the formatted string of analyzers options."
|
"Return the formatted string of analyzers options."
|
||||||
|
|||||||
@@ -74,13 +74,3 @@
|
|||||||
(is (= (cs/lower-case plaintext)
|
(is (= (cs/lower-case plaintext)
|
||||||
(get-plaintext ciphertext symbols frequencies))))))
|
(get-plaintext ciphertext symbols frequencies))))))
|
||||||
|
|
||||||
(deftest frequency-analizer-get-plaintext-test
|
|
||||||
(let [plaintext "abc"
|
|
||||||
ciphertext "bca"
|
|
||||||
key 1
|
|
||||||
symbols "abc"
|
|
||||||
frequencies "etaoinsrhldcumfpgwybvkxjqz"]
|
|
||||||
(testing "The ciphertext is 'bca' and key is 1."
|
|
||||||
(is (= plaintext
|
|
||||||
(frequency-analizer-get-plaintext ciphertext symbols frequencies))))))
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user