iOS6 comes with a great new feature you can use to password lock an app or only a part of the app so you can hand over your iPhone to other people without worrying they will do or find something you don't want.
If you want to make a clean install of the new OS X Mavericks or even the older versions of Mac OS X, than I strongly suggest you to create a bootable OS X key or a drive.