I have been trying to implement XTEA encryption on Cortex M3 Microcontroller in C , in IAR IDE , so far Encryption Decryption is working , but i am facing a problem , I have To Encode Ascii Strings,but the Encrypted String Sometimes contains a 0x00 in String Array ,not in end as null terminator but in middle somewhere , so the String functions do not get the correct length of String because of this extra 0x00 they assume its Null Terminator , Problem is that I have to Transmit this String over GPRS , and the backend is also using same kind of ASCII string expecting 0x00 only at the end , in firmware also rest of String Transmission is assuming it to be Null Terminating , is there any way to Replace this 0x00 in Encrypted String with some other value , in a manner that it can also be reproduced easily later in backend , suppose i add 0x01 to each Encrypted String Array , this may make one 0xff to 0x00 , is there a way to remove this 0x00 ,
or any other Simple Encryption Algorithm for Ascii String , easily implementable on microcontroller, that guarantee Non Zero value in encrypted string , the backend guys insist on having some algorithm being used in systems , does AES algorithm insures Non zero value?