Use a passcode with data protection

For better security, you can set a passcode that must be entered each time you turn on or wake up iPhone.

Setting a passcode turns on data protection, using your passcode as a key to encrypt Mail messages and attachments stored on iPhone, using 256-bit AES encryption. (Other apps may also use data protection.)

If you forget your passcode, you must restore the iPhone software. See Restore iPhone.