So I've got an old iphone 4 and I'm planning to hand it over to a friend of mine whos shown interest in it. But I wanted to make sure all my stuff like passwords, links to itunes or other accounts etc, are all wiped off. But I dont want to remove the jailbreak functionality. I was looking at the factory reset but got a little worried. Any advice?