+ 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
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.
+ 7
Error:404 Not Found 😂😂
+ 7
Kuba sir string has no attribute write thwre is an error in your code
Wait the error disappeared?
+ 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.
+ 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.
+ 6
I gave it a shot :)
https://code.sololearn.com/cuKnuo01NOb9/?ref=app
EDIT: now without the SoloLearn bug ;)
+ 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
+ 5
@$ Try now, I forgot to make it CodePlayground-proof :)
+ 3
I did this one quite a while ago, the instructions are in the first comment block
https://code.sololearn.com/c8Non41HGKih/?ref=app
+ 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
+ 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
+ 1
just use replace method in string ( almost in any language ).
or just for loop over the string and changing the character