Skip to main content
115 votes

Print a Tabula Recta!

Vim, 25 23 bytes :h<_↵jjYZZP25@='Ypx$p'↵ Where is the Return key. ...
lynn's user avatar
  • 68.8k
41 votes

Proving that a Russian cryptographic standard is too structured

AMD64 Assembly (78 bytes or 624 bits of machine code) uint8_t SubByte(uint8_t x) { uint8_t y,z; uint8_t s[]= {1,221,146,79,147,153,11,68,214,215,78,220,152,10,69}; uint8_t k[]= ...
odzhan's user avatar
  • 511
34 votes
Accepted

Print a Tabula Recta!

05AB1E, 6 5 bytes Thanks to Downgoat for saving 1 byte. Code: ADv=À Explanation: ...
Adnan's user avatar
  • 44.4k
30 votes

Print a Tabula Recta!

Python 2, 59 57 53 bytes a=range(65,91)*27 a[::-27]=[10]*26 print bytearray(a) Thanks to @xsot for -4 bytes!
dianne's user avatar
  • 1,123
29 votes

Proving that a Russian cryptographic standard is too structured

CJam, 72 67 66 63 bytes ri{_2md142*^}es*]2#~Hmd{5\}e|Fm2b"Ý0$&Ü™ÖD�’ ˜×EO“N".*Lts:^i ...
jimmy23013's user avatar
26 votes

Proving that a Russian cryptographic standard is too structured

Jelly 71 59 bytes H^142ƊHḂ?Ƭi2d17U⁸⁴;$Ḣ?$CµṪạ⁴B¬T;;6ị“Œ0$&ØŀWð⁺Ṫ\ḢĠVı⁻¹]°Ẇ‘^/ Try it online! Verify all possibilities Now rewritten using a reworked ...
Nick Kennedy's user avatar
  • 21.1k
20 votes

Print a Tabula Recta!

///, 220 bytes ...
Martin Ender's user avatar
18 votes

Print a Tabula Recta!

C, 47 bytes i;f(){for(i=702;i--;)putchar(i%27?90-i%26:10);} Try it on Ideone A single loop, printing the alphabet every 26 characters but with every 27th ...
Anders Kaseorg's user avatar
18 votes

Proving that a Russian cryptographic standard is too structured

C (gcc), 157 148 140 139 bytes Modest improvement over the C example. ...
ceilingcat's user avatar
  • 7,605
18 votes

MD5 Hello, World!

Python, 360 + 360 = 720 bytes 206 + 206 = 412 bytes 201 + 201 = 402 Hi, my two cents. This answer is inspired by this blog by Nat McHugh. A short introduction to explain the idea behind the code. MD5 ...
PieCot's user avatar
  • 1,279
16 votes

Print a Tabula Recta!

J, 15 bytes u:65+26|+/~i.26 Online interpreter. ...
Leaky Nun's user avatar
  • 49.8k
16 votes

Print a Tabula Recta!

///, 128 bytes /:/fABCDEFGHIJKLMNOPQRSTUVWXYZ fbfbAfxf xbA_xf_x xfbbbAfbb//x/bff//f/\///b/\\:B:C:D:E:F:G:H:I:J:K:L:M:N:O:P:Q:R:S:T:U:V:W:X:Y:Z: Try it online! ...
Martin Ender's user avatar
16 votes

Gimli, make it even shorter?

C (gcc), 237 bytes ...
orlp's user avatar
  • 39.1k
15 votes

Proving that a Russian cryptographic standard is too structured

Stax, 65 64 62 59 58 bytes ç∙¼≥2▼Uó╤áπ╙º┐╩♫∟öv◘≥δ♦Θ╫»─kRWÑâBG")≥ö0╥kƒg┬^S ΔrΩ►╣Wü Ü╕║ Run and debug it Unfortunately, this program uses some instructions that ...
recursive's user avatar
  • 10.4k
14 votes

Print a Tabula Recta!

Emacs, 47 bytes abcdefghijklmnopqrstuvwxyz^M ^P <F3> ^K ^K ^Y ^Y ^P ^<space> ^F ^W ^E ^Y ^A <F4> ^U 2 4 F4 Where ...
MattBlissett's user avatar
13 votes
Accepted

Shamir's Secret Sharing

Jelly, 15 bytes 251©xX€⁵0¦ḅЀ%® Expects t, n, and s as command-line arguments. Try it online! How it works ...
Dennis's user avatar
  • 210k
12 votes

Print a Tabula Recta!

PowerShell, 37 bytes 25..0|%{-join('Z'..'A')[$_..($_-25)]} Try it online!
Joey's user avatar
  • 13.1k
11 votes

Print a Tabula Recta!

Jelly, 7 bytes ØAṙJṢj⁷ Try it online! How it works ...
Dennis's user avatar
  • 210k
11 votes

Print a Tabula Recta!

JavaScript (ES6), 56 bytes _=>"ABCDEFGHIJKLMNOPQRSTUVWXYZ".replace(/./g,"$&$'$`\n") Yes, that's right, half my code is the alphabet string literal. Best I ...
Neil's user avatar
  • 172k
10 votes

Implement Rijndael's S-box

x86-64 Machine code - 23 22 20 19 bytes Uses the AES-NI instruction set ...
me''s user avatar
  • 581
10 votes

Print a Tabula Recta!

C, 88 64 bytes Call f() without arguments. f(i,j){for(i=j=0;i<26;putchar(j==26?j=0,i++,10:65+(i+j++)%26));} Try it on ideone....
owacoder's user avatar
  • 1,576
10 votes

Print a Tabula Recta!

Piet, 247 bytes/190 codels Try it Online! So, this took far longer than I had anticipated, and I have a few ideas on some other more efficient (more stack-friendly) approaches, but I finally got the ...
cincodenada's user avatar
10 votes

Write a VIC cipher encoder

Python 3, 1423 1348 1324 1316 1300 1286 1250 1249 1209 1206 1204 bytes This is definitely the longest golf I've ever done, and the only golf where I was seriously worried about running out of one-...
Sherlock9's user avatar
  • 12.3k
10 votes

Proving that a Russian cryptographic standard is too structured

05AB1E, 101 100 98 97 95 94 bytes U•α">η≠ε∍$<Θγ\&@(Σα•₅вV₁[<ÐX*Q#X·₁%Xžy÷Ƶ¹*₁%^₁%U}D17©%DĀiYsès®÷•¾#kôlb¸ù,-ó"a·ú•₅вë\Ƶ∞s®÷Y}sè^ -3 bytes ...
Kevin Cruijssen's user avatar
9 votes

Substitution cipher

Convex, 4 6 5 bytes Crossed out 4 is still regular 4 :( Note: As @Dennis pointed out, the input format I was using was not up to spec. This version should comply with the new rules, though. ...
GamrCorps's user avatar
  • 7,592
9 votes

Print a Tabula Recta!

MATL, 8 bytes With thanks to @Dennis, who suggested that MATL should incorporate modular indexing, and to @Suever, who had the idea of automatic pairwise operations. ...
Luis Mendo's user avatar
  • 105k
9 votes

Print a Tabula Recta!

Mathematica 68 61 bytes Column[""<>RotateLeft["A"~CharacterRange~"Z",#]&/@0~Range~25] Thanks to... @MartinEnder (7 bytes)
martin's user avatar
  • 1,345
9 votes

Print a Tabula Recta!

Python 2, 75 65 61 58 bytes a='%c'*26%tuple(range(65,91)) for x in a:print a;a=a[1:]+x Gets the alphabet with ...
Copper's user avatar
  • 3,930
9 votes

Print a Tabula Recta!

R, 47 42 41 bytes write(rep(LETTERS,27)[-27*1:26],1,26,,'') Try it online! Generates 27 alphabetes, removes 27-th letters and prints in 26 columns. Improvement ...
Robert Hacken's user avatar
9 votes

Proving that a Russian cryptographic standard is too structured

Python 3, 151 bytes ...
xnor's user avatar
  • 145k

Only top scored, non community-wiki answers of a minimum length are eligible