+ 10
🔫😎🔫 007 [ENCRYPT - DECRYPT] CHALLENGE! 😎🔫😎
Do you like spy movies? You have to encrypt and decrypt a text following these simple rules: 1) each letter of the alphabet will be replaced by some consecutive '@'. For example 'c' (or 'C') is the third letter so it will be replaced with @@@. 2) to separate two letters in a word use one '|' 3) each word starts with '{' and ends with '}' 4) other characters like "!?,.:;" has not to be encrypted. 5) don't use "@|{}" in your sentences: if a string start with '{' you know that you have to decrypt it.
13 Antworten
+ 4
@bykah something wrong
+ 3
@dennis thanks. Yes, it is right: you can consider "Hi," like an single word formed by three letters: 'H' 'i' ','.
Nice work!
+ 3
@Amr good work!
+ 2
Nice challenge :)
Hopefully I understood it currectly ^^
https://code.sololearn.com/cboxmO1BpbSv/?ref=app
+ 2
https://code.sololearn.com/cTz3oKkK5rMY/?ref=app
+ 1
That was a real pain.
My PHP implementation.
https://code.sololearn.com/w0HzO525IIlh/?ref=app
+ 1
https://code.sololearn.com/c21N2oWlUODe/?ref=app
+ 1
@Hiroki
Doesn't work correctly
+ 1
@Freezemage
Thanks for your comment.
I tried to fix. Now my code can handle "words".
Is it a right correction? thanks.
+ 1
@Hiroki
now you have to decrypt it.
0
@Freezemage
Thanks. I forgot it. I fixed.