in blowfish when i encrypt some text with the same key every time it gives me different value
ex.
every time i encrypt plainText with (EPVP) it give me a different value and only (EPVP) can decrypt it(in blowfish)
on the other hand when i try AES256 with the same credentials (CBC mode)
if the key is the same it gives the same result @ every encryption
NOTE(i dont want to generate random key every time cuz i am creating server \ client communication and i want to store the key in both of them so only the one with that key could encrypt the Messages)--OR tell me a good way to use AES in server client communication--
So the question is : how could i make AES encrypt the same text with the same key every time but giving non equal values (like BLOWFISH)
_______A funny thing away from the post :D
ex.
Code:
Key = EPVP plainText = badguy4you
on the other hand when i try AES256 with the same credentials (CBC mode)
if the key is the same it gives the same result @ every encryption
NOTE(i dont want to generate random key every time cuz i am creating server \ client communication and i want to store the key in both of them so only the one with that key could encrypt the Messages)--OR tell me a good way to use AES in server client communication--
So the question is : how could i make AES encrypt the same text with the same key every time but giving non equal values (like BLOWFISH)
_______A funny thing away from the post :D