I have an application that keeps it's data in classes (not database). for saving data I use
binaryformatter and convert this data to
memorystream then encrypt it. for being safe, I want to keep a backup of this data. so I would have same data encrypted with same key but different salt and counter(IV) . Is this safe or having same data with same key will endanger security?
I tried to add a class with random length fake bytes to data and set it in start, so files will have different sizes and their data will not be exactly same, but it seems
binaryformatter have it's own order and I can not ensure that this class will be in start of encrypted file (is there a way to do this?)