I am trying to build a web app that uses AES to encrypt strings. I store the encrypted strings in a file and decrypt it when needed again. But I need to add a delimiter to seperate encrypted strings from normal strings in the file. So naturally the delimiter would be some character that is not included in the AES output. So which characters could the delimiter be? I tried googling but could not find any satisfactorily results. Any code in JavaScript or PHP would be helpful
Input and output to crypto functions are normally byte arrays; you want to encode data. Good candidates are Hex or Base64. Both have well-defined character-sets.