+ 12

Encrypter/decrypter

make 2 programs that are opposites. one of them incoding a message and turning it into a hard to understand form while the other program takes the hard to understand form and outputs the first text. a very simple take would be to swap all the "a"s and "b"s. for example the word "boat" would be changed to "aobt" by the first one. and the second one would take "aobt" to output boat. harder to understand versions are encouraged and it would be nice if the code has comments explaining stuff cuz I suck at codin

7th Aug 2017, 7:36 PM
Not Found
Not Found - avatar
12 Antworten
+ 8
vukasin zeljic, as far as I know, the method you used in your python code is called the Cesar encryption method. just sayin' thanks for solving it.
7th Aug 2017, 9:49 PM
Not Found
Not Found - avatar
+ 7
Error:404 Not Found 😂😂
7th Aug 2017, 7:56 PM
Ranjan Bagri
Ranjan Bagri - avatar
+ 7
Kuba sir string has no attribute write thwre is an error in your code Wait the error disappeared?
8th Aug 2017, 6:03 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 7
thanks everyone who gave it a shot or just checked. it's quite nice to see programmers from all over the world take different paths in solving the same problem.
8th Aug 2017, 6:03 PM
Not Found
Not Found - avatar
+ 6
yes but as I said, methods that are more complex are encouraged. what I gave was just an example to explain it better for people who don't get it or those who have bad english.
7th Aug 2017, 7:43 PM
Not Found
Not Found - avatar
+ 6
I gave it a shot :) https://code.sololearn.com/cuKnuo01NOb9/?ref=app EDIT: now without the SoloLearn bug ;)
8th Aug 2017, 6:01 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 5
Here's my attempt at it. It's not hard to understand, it's a really simple code. https://code.sololearn.com/cBtEu0TLkN6J/?ref=app
7th Aug 2017, 9:36 PM
Vukašin Zeljić
Vukašin Zeljić - avatar
+ 5
@$ Try now, I forgot to make it CodePlayground-proof :)
8th Aug 2017, 6:05 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 3
I did this one quite a while ago, the instructions are in the first comment block https://code.sololearn.com/c8Non41HGKih/?ref=app
8th Aug 2017, 9:40 AM
Garikai
Garikai - avatar
+ 3
A code I did a while ago and fit for this challenge, what do you think about it ? :) https://code.sololearn.com/cyXxOpKJ6m5j/?ref=app
9th Aug 2017, 8:46 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 2
here is my little program in C++. encrypts a message as long as you want to an alien like code at current encryption. Then it decrypts the message back to original. You can change the encryption of the entire program by changing the constexpr value of Encrypter at the top of the code ;) hope you like it and leave an upvote please if you do ;) https://code.sololearn.com/cNSHqxrfFVK2/#cpp https://code.sololearn.com/chlcjkluHnY1/#cs
16th Aug 2017, 4:25 PM
Damian Atłasik
Damian Atłasik - avatar
+ 1
just use replace method in string ( almost in any language ). or just for loop over the string and changing the character
7th Aug 2017, 7:41 PM
‏‪‏‪Khalil Aladhami‬‏‬‏
‏‪‏‪Khalil Aladhami‬‏‬‏ - avatar