Please help!

I need to use RSA encryption to encrypt (decryption not needed) strings as part of a security model for communication with a remote service.

I was given a public key:


that i must use for encryption. How do i do this? i've looked at openSSL but no clear solution comes to mind.

i was also given the following example:

The following is a sample unencrypted MAC Code:


This is the same MAC Code that has been encrypted and outputted as a Base-64 String


I would greatly appreciate any help!