mirror of
https://github.com/Smaug123/ClassicalCiphers.jl
synced 2025-10-05 09:28:44 +00:00
updates for 0.6
This commit is contained in:
@@ -243,7 +243,7 @@ function encrypt_enigma{I <: Integer}(plaintext,
|
||||
print(ans, working_ch)
|
||||
end
|
||||
|
||||
uppercase(takebuf_string(ans))
|
||||
uppercase(String(take!(ans)))
|
||||
end
|
||||
|
||||
function decrypt_enigma(args1...; args2...)
|
||||
|
@@ -38,7 +38,7 @@ function encrypt_hill{I <: Integer}(plaintext, key::Array{I, 2})
|
||||
print(ans, Char(x))
|
||||
end
|
||||
end
|
||||
takebuf_string(ans)
|
||||
String(take!(ans))
|
||||
end
|
||||
|
||||
|
||||
|
@@ -108,7 +108,7 @@ function encrypt_playfair(plaintext, key::Array{Char, 2}; stripped=false, combin
|
||||
i += 2
|
||||
end
|
||||
|
||||
takebuf_string(ans)
|
||||
String(take!(ans))
|
||||
end
|
||||
|
||||
|
||||
|
@@ -32,7 +32,7 @@ function encrypt_portas(plaintext, key_in::AbstractString)
|
||||
end
|
||||
end
|
||||
|
||||
takebuf_string(ans)
|
||||
String(take!(ans))
|
||||
end
|
||||
|
||||
"""
|
||||
|
@@ -65,6 +65,6 @@ function crack_vigenere(plaintext; keylength=0)
|
||||
end
|
||||
|
||||
derived_key = join([Char(65+crack_caesar(st)[2]) for st in everyother], "")
|
||||
(derived_key, takebuf_string(ans))
|
||||
(derived_key, String(take!(ans)))
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user