I am making a website with PHP, and I need to store personal information about a user (name, address, phone number) in a MySQL database. The information will be shown to the user.
I am planning to use AES encryption to encrypt the data. Using the user password seems user-unfriendly, because the user will have to type his password for every time the data has to be shown.
I wanted to use a string stored in the session, where the id of the user, the hashed password and the username are appended, and then hashed. Is this a safe cipher key to use?