I want to store some encrypted data, for example, as a password manager, where your main password opens all the basic passwords of applications / sites.
Looking around, I found a few examples, such as, but they seem to use a password as part of the encryption, like salt in a hash. This means that you need the same password for decryption, so you can never change the password. This does not seem great in terms of security / usability; if the PW gets compromised, you will have to redo the entire database under another PW.
How can you create a system in which you can change the master password? Do you do a simple registration check and then use the string to encrypt / decrypt? Is the static nature and storage of this string unsafe?
I know some PHP and smidge from Javascript, so if you have examples in those languages that would be good, but a more general high-level explanation is also very much appreciated.
source
share