java - How to make IvParameterSpec random but still decrypt -


For encryption in java ... This is an introduction to the article that the initial vector should be different every time, but if I encrypt To decrypt a different one used to do different IV, I get the garbage letter instead of the expected data.

What is the proper way to encrypt on a server and decrypt it on the second front of the server?

The general technique seems to be a byte array, but it is supposed to be unsafe ???

I believe is like a fourth salt - it is not a mystery, It is used only to present an additional element of randomness so that the same message can be encrypted, the same key still comes out each time individually.

Then you can transmit four to encrypt as part of the encrypted value, as you will store the salt with a hash for a hash value.

Of course, I can not complete the ly ...

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -