From text to code/cipher translator

Hii, I am trying to create an app that translates a phrase to a code, where the "M"s are 0, the "U"s are "1"s, the "R"s are "2"s, the "C"s are "3"s, the "I"s are "4"s; the "E"s are "5"s, the "L"s are "6"s, the "A"s are "7"s, the "G"s are "8"s, the "O"s are "9"s and the other letters stay the same; the thing is I don't know how to replace the letters with their numbers. For example:
Hi everyone = H4 5v52y9n5.
I could really use some help, thank you all :slight_smile:

Hello,

you can use a dictionary where the keys are the letters and the values the numbers.

An example:

You can map the blank space to another blank space, so that they remain in the resulting sentence and use upcase to map upcase/lowcase to the same number.

1 Like

There's an advanced text replace block for that:
image


5 Likes