Original Post
Is it hypothetically possible to represent any string of any length that is ASCII encoded by using the string "Bah Wtf" as an encryption? Here's the status so far; To encrypt, you'd simply do this: - Read string from file into memory. - Copy the data into another string (so the original data is retained). - For each letter in the new string, replace with the string "Bah wtf". - If you end up with too many "Bah wtf"s, simply delete the ones that are in excess. Now, obviously, I'm trying to figure out how to convert the string back again, should that be neccessary. Does anyone have any suggestions? Here's my current, very theoretical approach; - Make each letter represent a different number based on the way it's being read (from left to right or right to left etc.), and then store a certain amount of bytes in the encrypted file telling the decryption file which way to read the string and which numbers the letters should represent based on what way the string is read. As far as I can see, the only way to make this work would be to store some extra data, but ideally I'd like to achieve an encryption and decryption of ANY string of ANY length without any extra data storage. Is this even possible?