AES Cipher not picking up IV
- by timothyjc
I am trying to use an IV with AES so that the encrypted text is unpredictable. However, the encrypted hex string is always the same.
I have actually tried a few methods of attempting to add some randomness by passing some additional parameters to the cipher init call:
1) Manual IV generation
byte[] iv = generateIv();
IvParameterSpec ivspec = new…