Your approach should be :

set the password to some known value and dump the file
set the password to a different known value and dump the file

etc.

Change no other data which are stored in...