Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
11
Task/ADFGVX-cipher/Uiua/adfgvx-cipher.uiua
Normal file
11
Task/ADFGVX-cipher/Uiua/adfgvx-cipher.uiua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
A ← ↯∞_2⊞⊟."ADFGVX"
|
||||
P ← ⊏⍏[⍥⚂]⧻."ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
|
||||
K ← "PACKHORSE"
|
||||
Sw ← ⊜□≠" ".
|
||||
Polybius ← setinv(/⊂⊡≡(⊚⌕):⊙:¤P A|⊏:P≡(⊢⊚⌕)⊙¤∩≡□↯∞_2:A)
|
||||
SortByK ← setinv(⊏⍏⟜(⍉⬚" "↯⊟∞⧻)K|▽≠" "./⊂⍉⊏⍏⍏K)
|
||||
Str ← setinv(/$"_ _"Sw/⊂≡(⊂:" ")|≡(⊢°□◇⬚" "↯⊟∞)/↥≡◇⧻.Sw)
|
||||
Pt ← "ATTACKAT1200AM"
|
||||
&p $"Key = _\nPolybius:\n_\nPlaintext = _"K↯⊟.√⧻.P Pt
|
||||
&p$"Crypttext = _". Str SortByK Polybius Pt
|
||||
&p$"Plaintext = _" °Polybius °SortByK °Str
|
||||
Loading…
Add table
Add a link
Reference in a new issue