MADRID -- Telecom giant Telefonica and several other Spanish companies were targeted in cyber attacks Friday, the government said.

Spain's national cryptology centre, a division of the country's intelligence services, said the ransomware used in the attacks was of the WannaCry type which locks targeted files with a secret encryption algorithm.

It affected Windows operating systems and any linked networks, it explained.

Source: Emirates News Agency