Scientific advance leads to a new tool in the fight against hackers