A breakthrough in cryptography could thwart a favorite attack of hackers