mirror of
https://github.com/Smaug123/ClassicalCiphers.jl
synced 2025-10-07 02:18:39 +00:00
Removed un-needed comment
This commit is contained in:
@@ -1,13 +1,3 @@
|
|||||||
#=
|
|
||||||
julia> @btime encrypt_monoalphabetic("THIS CODE WAS INVENTED BY JULIUS CAESAR", "DEFGHIJKLMNOPQRSTUVWXYZABC")
|
|
||||||
2.746 μs (21 allocations: 2.31 KiB)
|
|
||||||
"WKLV FRGH ZDV LQYHQWHG EB MXOLXV FDHVDU"
|
|
||||||
|
|
||||||
julia> @btime decrypt_monoalphabetic("WKLV FRGH ZDV LQYHQWHG EB MXOLXV FDHVDU", "DEFGHIJKLMNOPQRSTUVWXYZABC")
|
|
||||||
3.817 μs (31 allocations: 3.81 KiB)
|
|
||||||
"this code was invented by julius caesar"
|
|
||||||
=#
|
|
||||||
|
|
||||||
_keystr_to_dict(keystr::AbstractString) =
|
_keystr_to_dict(keystr::AbstractString) =
|
||||||
Dict{Char, Char}(Char(i + 64) => c for (i, c) in enumerate(uppercase(keystr)))
|
Dict{Char, Char}(Char(i + 64) => c for (i, c) in enumerate(uppercase(keystr)))
|
||||||
_keystr_to_dict(A::AbstractString, B::AbstractString) =
|
_keystr_to_dict(A::AbstractString, B::AbstractString) =
|
||||||
|
Reference in New Issue
Block a user