Is there any way to encrypt my data without doing it manually? I do not want to update my data to the encrypted data every time. I thought about triggers but triggers cannot work on same table. I want after any insert or update, encrypted insert or update will happen in my database instead of normal insert or update. Any suggestion would be appreciate, I prefer this happen in database not in PHP.
encrypted insert code:
insert into usersExample3(username,password,salt)
values('bestTom2',aes_encrypt(concat('password1234','salt12345'),'key1234'),'salt12345');