Export key derivation options
Key derivation options are now exported from the functions keyFromPassword and encryptWithDetail. This can allow the project using this package to store the key derivation options alongside the vault, allowing for easier migrations to newer derivation options in the future.
Closes #1
I don't think this is valuable until we support some alternative options. Putting this on the backburner until we decide on how to improve our key generation.
One easy way to improve generation would be to simply add more hash cycles. Current vaults could be made harder to crack.
Yeah, maybe for now we can add support just for that. And we can set a minimum of the current number of cycles that we use.
I would like to preserve a minimum level of safety with the options we allow. That's the only reason I'm hesitating to allow further configuration; I don't know how to ensure a minimum level of safety across all of these controls.