zdia/gorilla — Issue #66: "Unreasonable" key stretching is what I actually chose
Author: nathanl
Created: 2011-11-01 14:00:43+00:00
State: open

I just learned that I can modify the key stretching setting and was experimenting with making it as large as possible without an intolerable delay in saving and opening.

In my experiment, I set it to 99999 iterations and saved my database. I then closed Password Gorilla and tried to re-open the file.

Password Gorilla now gives me the following error: " Can not open password database "[name of my database]": Key stretching wants 99999 iterations, which seems unreasonable".

I see where this message comes from in your source code and the reasoning behind it; it could be a file format error. Nevertheless, I have an immediate problem: **how can I open my file**?

Also, I would like to report this as a bug. There should be a global setting for the maximum "reasonable" value that Password Gorilla will try when opening a file, and it should not allow saving a file with a higher setting than that. In other words, **it should never save a file that it won't be able to re-open**.