updates for 0.6

This commit is contained in:
cormullion
2017-04-28 11:18:49 +01:00
parent 8c3a152225
commit a3da67ce7e
5 changed files with 5 additions and 5 deletions

View File

@@ -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...)

View File

@@ -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

View File

@@ -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

View File

@@ -32,7 +32,7 @@ function encrypt_portas(plaintext, key_in::AbstractString)
end
end
takebuf_string(ans)
String(take!(ans))
end
"""

View File

@@ -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