The FBI is currently in a battle with Apple to allow encrypted phones be unlocked, but how does encryption even work?