Passcode Feature in iOS4
A while back we had a post showing how to add a strong passcode to your iPhone. Thanks to the recent release of iPhone OS 4 this feature is now built in!
To enable this feature go to Settings -> General -> Passcode Lock, toggle Simple Passcode to off, and enter your preferred alphanumeric passcode.