Passwords, SSH key, Radius key and other security information are stored on flash and not on config file per default.
If you have a hp procurve/aruba switch enter the command "include-credentials" and they will be stored in the config file.
I dont know for other switch technologies.
Ray