I have the requirement to syncrhonously encrypt a unique ID using AES on iOS / Objective-side; this is afterwards https-transported to a Java-System, where I need to decrypt it.
I am admittedly not a encryption expert. From what I read about the topic, a IV is needed to prevent identical encryption results for the first block and therefore make it harder to brute-force the encryption-result / cipher.
So in reverse this means by my understanding, that the IV is also needed to decrypt as well.
So the first question for my scenario is: -How do I pass the IV to the decryption system? Is it safe to append it to the encrypted String in plain text?
-Wouldn't IV get obsolete if the beginning of the to-encrypt-text would be a dynamic Salt, i.e. timestamp - As far as I see it, this would result in something similar: the beginning of the encrypted message would never be the same despite the same or none IV?
Thank's a lot for your explanations...