I love my encryption but I need a program that is dedicated to making a caeser cipher. It will take an input string and will output a ciphered text with the number to decode it. The number can be made whatever you want
The shortest code wins!
I love my encryption but I need a program that is dedicated to making a caeser cipher. It will take an input string and will output a ciphered text with the number to decode it. The number can be made whatever you want
The shortest code wins!
0
Outputs the input string rotated by 0 characters, plus the digit 0
to show how to decode it.
(sorry, I couldn't resist)
This was my first idea.
puts gets+?0
I see Doorknob posted an answer as I'm typing this, similar to my next idea:
q0pp
Both of these shift by 0.
This might not count, because I haven't actually released the interpreter yet, but my golfing language KSFTgolf can do it like this:
0
That's zero bytes. It takes a byte to print the zero
Here are more:
print raw_input()+"0"
print(input()+"0")
print<>.0;
puts
or $><<
instead. (You could also save a character by replacing "0"
with ?0
.)
\$\endgroup\$