The Sunday Times says deciphering the code also helped authorities uncover several terrorist plots .