Posted 15 August 2016 - 09:10 PM
First of all sorry I don't have any worthwhile tangible code here, this is more conceptual than anything at this point.
I am making a password system using encryption using PixelToast's encryption api. I am having this save the password and encrypting it with that password. That password will decrypt things like emails as well. I'm doing this so even server admins with access to the raw files won't be able to read them. I will have a change password function that will go through all encrypted files and re encrypt them with this new password.
Said admins will theoretically be able to use the same encryption to change the password, but doing so would basically corrupt the encrypted emails because it didn't ever get re encrypted with the new password. I am essentially trying to think of a way to recover those falsely encrypted emails.
I am making a password system using encryption using PixelToast's encryption api. I am having this save the password and encrypting it with that password. That password will decrypt things like emails as well. I'm doing this so even server admins with access to the raw files won't be able to read them. I will have a change password function that will go through all encrypted files and re encrypt them with this new password.
Said admins will theoretically be able to use the same encryption to change the password, but doing so would basically corrupt the encrypted emails because it didn't ever get re encrypted with the new password. I am essentially trying to think of a way to recover those falsely encrypted emails.