I'm assuming you mean the 4 digit pass lock used to gain entry to the iPhone.
This password is there as a frontline of security to the iPhone to stop finders of the iPhone obtaining entry to its contents so your going to have to look towards for this.
If you have it set to wipe all contents after 10 tries then do be careful.