Skip to main content
22 votes

Encode the alphabet cipher

05AB1E, 11 6 bytes Code: Ç4+€¦J Explanation: First, we convert the string to their ASCII values. codegolf would become: <...
Adnan's user avatar
  • 44.4k
14 votes

Encode the alphabet cipher

Python 2, 42 bytes f=lambda s:s and`ord(s[0])+4`[1:]+f(s[1:]) Test it on Ideone.
Dennis's user avatar
  • 210k
14 votes
Accepted

579085261 is CRAZY, 725582 is GOLF, 10757494 is ...?

Jelly, 29 27 bytes ÆEµØA“¡3ḅḲ+Ṿɼ¡ẏƙẊƘ’œ?xḊṚḢ}¡ Thanks to @JonathanAllan for golfing off 1 byte! Try it online! Background ...
Dennis's user avatar
  • 210k
13 votes

Let's do some "deciph4r4ng"

Java 7, 81 80 bytes void a(char[]a){for(int i=0;++i<a.length;)if(a[i]>47&a[i]<58)a[i]=a[i-a[i]+47];} Try it online! Saved 1 byte thanks to Anders ...
Poke's user avatar
  • 3,185
12 votes

Let's do some "deciph4r4ng"

Haskell, 55 bytes o#c|c>'/',c<':'=o!!read[c]:o|1<2=c:o reverse.foldl(#)[] Usage example: ...
nimi's user avatar
  • 35.8k
12 votes
Accepted

Let's do some "deciph4r4ng"

Jelly, 9 7 bytes ~ịṭṭµ@/ Try it online! How it works ...
Dennis's user avatar
  • 210k
12 votes

Let's do some “enciph5r47g”

Retina, 24 23 bytes (.)(?<=\1(.{0,9}).) $.2 Try it online! A fairly simple regex substitution. We match each character and try to find a copy of it 0-9 ...
Martin Ender's user avatar
11 votes

Let's do some "deciph4r4ng"

C, 46 bytes f(char*s){for(;*s++;)*s=s[(*s-52)/6?0:47-*s];} Try it online! C,  52   49  48 bytes Thanks to @l4m2 for saving a byte! ...
Steadybox's user avatar
  • 16.5k
11 votes

Incremental Cipher

8086 machine code, 70 68 67 bytes ...
user5434231's user avatar
  • 1,646
11 votes

The Keyboard Shift Cipher

Jelly, 13 bytes ØQØDṭ,ṙ€¥⁸F€y Try it online! How it works ...
Dennis's user avatar
  • 210k
11 votes

Alienese cycles

K (ngn/k), 13 12 bytes #(26!+\)\65! Try it online! Git gud, Jelly. Only one byte ahead of an ASCII-only language? :P Takes uppercase input and computes the length ...
Bubbler's user avatar
  • 77k
10 votes

Incremental Cipher

Python 3, 87 bytes r,*s=input();p=r for c in s:d=(ord(p)-ord(c)-13)%26-13;r+='<'*d+'>'*-d+'*';p=c print(r) Try it online! Works with either lowercase or ...
xnor's user avatar
  • 145k
9 votes

Encode the alphabet cipher

Pyth, 11 10 bytes FNwpt`+4CN Try it! My first go at Pyth. ...
Artyer's user avatar
  • 1,925
9 votes

Decode Baby-talk!

Perl, 82 bytes Includes +1 for -a Give input on STDIN: ...
Ton Hospel's user avatar
  • 14.9k
9 votes

Let's do some "deciph4r4ng"

05AB1E, 11 bytes vydiÂyèëy}J Try it online! Explanation ...
Emigna's user avatar
  • 53k
9 votes

579085261 is CRAZY, 725582 is GOLF, 10757494 is ...?

05AB1E, 39 38 bytes ÒW<iR¨}26LØR•6Ê2"£´õþÕàçŸôëÂÛ*™•36BS:J Uses the CP-1252 encoding. Try it online!
Adnan's user avatar
  • 44.4k
9 votes

579085261 is CRAZY, 725582 is GOLF, 10757494 is ...?

Ruby, 139 138 134 125 120 115+7 = 146 145 141 132 127 122 bytes Uses the -rprime flag for +7 bytes. -1 byte from @daniero. -4 bytes by remembering that I can just ...
Value Ink's user avatar
  • 12.6k
9 votes

The Keyboard Shift Cipher

Python 2, 110 bytes lambda s,n,y='1234567890'*99+'QWERTYUIOP'*99+'ASDFGHJKL'*99+'ZXCVBNM'*99:''.join(y[y.find(c)+n%630]for c in s) Try it online! This uses a ...
Rod's user avatar
  • 18.4k
8 votes

Let's do some “enciph5r47g”

JavaScript (ES6), 74 57 54 bytes Saved 3 bytes thanks to ETHproductions with the brilliant p=/./g instead of p={} (inspired by ...
Arnauld's user avatar
  • 193k
8 votes

579085261 is CRAZY, 725582 is GOLF, 10757494 is ...?

Python 2, 220 217 bytes ...
mbomb007's user avatar
  • 23.4k
8 votes

579085261 is CRAZY, 725582 is GOLF, 10757494 is ...?

Bash + GNU utilities + bsd-games package, 170 Seems pretty non-optimal, but it works: ...
Digital Trauma's user avatar
8 votes

A Capital Cipher

Jelly, 8 7 bytes fØaØA,y Try it online! How it works ...
Dennis's user avatar
  • 210k
8 votes

Alienese cycles

Wolfram Language (Mathematica), 60 bytes If[#!=##2,1+Accumulate@#~Mod~26~#0~##,0]&[LetterNumber@#-1]& Try it online! Input a list of characters. Determines ...
att's user avatar
  • 20.6k
7 votes

Encode the alphabet cipher

Jelly, 9 7 bytes O+4ṾḊ$€ TryItOnline How? ...
Jonathan Allan's user avatar
7 votes

Encode the alphabet cipher

Python, 46 bytes lambda x:"".join("%02i"%(ord(j)-96)for j in x) Pretty straightforward. Try it on repl.it!
xenia's user avatar
  • 8,142
7 votes

Let's do some "deciph4r4ng"

JavaScript (ES6), 59 53 bytes f=x=>/\d/.test(x)?f(x.replace(/\d/,(m,o)=>x[o+~m])):x Saved 7 bytes thanks to fəˈnɛtɪk. ...
Tom's user avatar
  • 3,108
7 votes

Let's do some “enciph5r47g”

Haskell, 72 66 bytes Thanks to Laikoni for golfing 6 bytes! (a:r)%s=last(a:[n|(n,b)<-zip['0'..'9']s,b==a]):r%(a:s) e%s=e (%"") Try it online! The function <...
Leo's user avatar
  • 12.7k
7 votes

Garbled Phone Numbers

Python 2, 314 307 274 bytes ...
ovs's user avatar
  • 59.5k

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