Permutation Polynomials and their Applications in Cryptography