wiping jail broken phone

I'm ready to sell my jail broken, unlocked 3g. How do I wipe it without loosing jail break? I don't have att service anymore, so I'm afraid if I reset it, it'll need to be activated again.
If you want to wipe you have to do it via iTunes. That will re-lock the phone. You can jailbreak it again afterwards though.

Read this thread, there is a chart on what to use to re-jailbreak it.
http://forum.tipb.com/iphone-jailbreak-unlock/195355-jialbreak-matrix-all-idevices.html

Original thread: https://forums.imore.com/threads/wiping-jail-broken-phone.195506/