I have the following string:
1679.2235398,-1555.40390834,-1140.07728186,-1999.85500108
and I'm using a steganography technique to store it in an image. Now when I retrieve it back out of the image, sometimes I got it back in a complete form and I have no issue with that. Where in other occasions, the retrieved data are not fully retrieved (due to a modification/alteration being occurred on the image), so the result something look like this:
1679.2235398,-1555.I8\xf3\x1cj~\x9bc\x13\xac\x9e8I>[a\xfdV#\x1c\xe1\xea\xa0\x8ah\x02\xed\xd1\x1c\x84\x96\xe2\xfbk*8'l
Notice that, only "1679.2235398,-1555." are correctly retrieved, while the rest is where the modification has been occurred. Now, how do I compute (in percentage) how much I successfully retrieved? Since the length is not the same, I can't do a character by character comparison , it seems that I need to slice or convert the modified data into some other form to match the length of the original data.
Any tips?