Not so simple in FBI/Apple case. FBI want Apple to write software to crack 10 tries wrong password function.
Fine till the baddies get it.