Factorization And Its Application In Cryptography