mirror of
https://github.com/Smaug123/ClassicalCiphers.jl
synced 2025-10-10 03:48:43 +00:00
Make crack_cipher outputs consistent for different ciphers
This commit is contained in:
@@ -12,6 +12,8 @@ using Base.Test
|
||||
@test (arr = ['P' 'L' 'A' 'Y' 'F'; 'I' 'R' 'E' 'X' 'M'; 'B' 'C' 'D' 'G' 'H'; 'K' 'N' 'O' 'Q' 'S'; 'T' 'U' 'V' 'W' 'Z'];
|
||||
encrypt_playfair("Hello, World!", arr) == "DMYRANVQCRGE")
|
||||
|
||||
@test encrypt_playfair("HELXLOWORLD", "PLAYFIREXM") == "DMYRANVQCRGE"
|
||||
|
||||
@test encrypt_playfair("IJXYZA", "PLAYFIREXM", combined=('I', 'J')) == "RMRMFWYE"
|
||||
@test encrypt_playfair("IJXYZA", "PLAYFIREXM", combined=('X', 'Z')) == "BSGXEY"
|
||||
|
||||
|
Reference in New Issue
Block a user