I am solving the file encoding and decoding using the function 2a + 3. The encoding part appears simple but while decoding , we need to know how many digits to group (since they can be any number of digits) to get back the original character. For this I thought while I encode it, I will add a delimiter like “-” (hash) so that I can use this to determine how many digits I need to group
So if there is a word like “is”, I will get the digits for the letter “i” followed by a “-” and then the digits for “s”
Is this fine or is there an alternative way of doing it ?