I am using AES encryption to secure some sensitive data. For that i have to provide a certain key for encrypting and decrypting.
It's not safe to keep the key somewhere on the server. So instead of entering the key directly, I would like to convert the key and later convert it back again to it's original when entering it while encrypting or decrypting the value.
I thought of doing the key conversion via PHP. Is it a good practice or are there any other suggestions?