Factorization and collision algorithms in Cryptography