You wrote:
Quote:
|
quote:The encryption key will not be stored in the database
|
Quote:
|
quote:...and then make a new entry in the table for the user which has been added containing the Encryption Chipper encrypted with the new userâs encryption key.
|
So the encryption key is store in the database..
I agree that encrypted the data is a good idea when needed; what I am trying to say is, if the key is store in the database - even encrypted- then the admin (root) can logon, reset the user password and access the datas as the user- thus making the hole encryption system useless.
If however,
a)you do not store the key in the database or anywhere for that matter- the user will need to write the key himself and if a tiny mistake in the key is made, since there is no verification possible, this will corrupt the data.
or b)you use the user's password as the key, anyone having root access still cannot access the data since reseting the password will automatically make the data un-recoverable.
However weird, you can reset an admin/root database password.
My impression however, is that you're trying to create a security system within the database where the user will have 2 passwords:
Username, password, Key (password2) this will be useless since anyone having full access to the server and system you're using to access the database can easily perform an "un-Crypt" on the encrypted key and then reset the user password.
Let me know if I missed something ??!