that is one way to do it, another way is if you have CFW there are a couple homebrew applications that can recover passwords depending on which one's you need.
-One is Passwords Viewer v0.1 which shows passwords for the PSP system and the PSN
-Another is NetConfig Backup Tool which stores access point information on your MS and is handy for restoring wep keys.