RSA Encryption implementation for Intro to Security