I want to use the TAESEncryption with Encrypt/decrypt stream and I have custom IV and Passwords.
Both IV, password is created with hashing and they are saved in Tbytes or Bytearray
In TAESEncryption, only strings are used to provide IV,password.
I was thinking of using the following to transform it:
IV:=TEncoding.ansi.GetString(salt);
key:=TEncoding.ansi.GetString(key);
An alternative could be:
IV:=stringof(salt);
key:=stringof(key);
Which of the above do you propose for multiple platforms use?
Is it possible to avoid all these string conversions?
Thank you in advance