Applications of exponential sums to solvability of equations, cryptography