Good example of setting up asymmetric token encryption for dotnet project

Hi,

I have been looking around for a while and not finding a good enough example yet. I need to encrypt a jwt asymmetrically in dotnet, save everything in the database and retrieve it to decrypt and compare it to other token(s) coming in from requests. I tried using AES and RSA but never got it working. Its only working solely by using AES to encrypt and decrypt. When using RSA and AES combined, I kept seeing key has changed kind of message. Not sure if what I am trying is a best practice, so that is why i am asking here as well.

So basically I was RSA encrypting the AES Key, saving that to the database then trying to decrypt it with RSA again. Any good examples out there?

Thanks