Law enforcement agencies use a decryption tool called GrayKey, which is said to unlock four-digit iPhone passwords in a matter of hours, but the six-digit password may take two or three days. GrayKey is a startup called Greyshift. Developed by the company, its founder, Braden Thomas, is a former Apple Security Engineer and is said to have signed in Apple's five patents.