That is simply not true.
******************
I know - thats whyI tagged it with /sarc. The Passcode I use with my Apple products is a LONG custom alphanumeric code. It would take longer than the 13 billion years the universe has existed for the NSA to break it. Anyone who relies on a 4 position numeric pass code is foolish, IMHO.
And how many of your childrens’ fingernails would a criminal have to remove before you reveled your passcode to them?
Don’t answer, I’m aware you would reveal it at the mere threat.
So it’s good for privacy, not security.
So the device knows the passcode therefore... and then you make it easy to search if they need too by including wildcards and certain chars they require...