This paper presents a novel algorithm for enhancing the speed of the RSA encryption process by leveraging the CUDA framework and GPU parallel processing capabilities. The research focuses on addressing performance bottlenecks associated with traditional RSA using large prime numbers and demonstrates significant execution time improvements for both small and large prime numbers. The findings indicate that utilizing GPU resources can substantially optimize RSA encryption and decryption processes, ultimately enhancing security in public-key cryptography.