Algebraic attack in cryptography