+ 3

Challenge: Caesar's Cipher

 Caesar cipher is one of the earliest known and simplest ciphers. It is a type of substitution cipher in which each letter in the plaintext is 'shifted' a certain number of places down the alphabet. For example, with a shift of 1, A would be replaced by B, B would become C, and so on. INPUT first line of input is N denoting the number of shifts to be done second line of input is the text to be ciphered OUTPUT encoded message CONSTRAINTS 0 < N < 2^32 Sample 1 uvwxyz vwxyza 5 defend ijkjsi

8th Dec 2017, 4:39 PM
Reniel Galerio
Reniel Galerio - avatar
7 Réponses
+ 12
Hey, this is the first Python code, it's one-liner. And accepts any value of N https://code.sololearn.com/cRIls1hkNrIk/?ref=app
12th Dec 2017, 6:36 PM
Justine Ogaraku
Justine Ogaraku - avatar
+ 8
https://code.sololearn.com/c4273uXNh86f/?ref=app
28th Jan 2018, 4:19 AM
ASIF BILAKHIYA
ASIF BILAKHIYA - avatar
+ 5
If you only want to shift letters in range A-Z a-z, then mine is not for you 😢, anyway take a look 😀. https://code.sololearn.com/c2wYX9yU8Lik/?ref=app
9th Dec 2017, 12:52 AM
Marfik Em
Marfik Em - avatar
8th Dec 2017, 4:57 PM
Reniel Galerio
Reniel Galerio - avatar
8th Dec 2017, 7:16 PM
abdulazizumarovich
abdulazizumarovich - avatar
+ 3
https://code.sololearn.com/cC7DOOS1DuDb/?ref=app This was written in c, then modified to accept input in the c++ code playground. It will also accept the shift as first input or from the command line (not both) if built using a compiler. Also first command line argument is a d then it will decide, ie the shift is in the other direction.
9th Dec 2017, 2:35 AM
Jared Bird
Jared Bird - avatar
6th Jan 2018, 6:40 AM
jaaxdev
jaaxdev - avatar