I used a solo line with hashed passwords, but not with two-way encryption. So, take this offer with grain ...
Add a salt string along with your key and vector (they really should be stored elsewhere, not hardcoded in your class, but for now this will work).
private string salt = " $e7?8f@l4 ";
Use it in EncryptToString added to the text value:
return ByteArrToString(Encrypt(TextValue + salt));
Then delete it in DecryptString:
return Decrypt(StrToByteArray(EncryptedString)).Replace(salt, string.Empty);
source share