Square roots and cube roots are utilized in cryptographic algorithms like RSA for secure data transmission. In RSA encryption, the security relies on the difficulty of factoring large composite numbers into their prime factors, which involves finding modular square roots and cube roots.