Using Azure Key Vault RSA Key to encrypt and decrypt strings
问题 I have setup Azure Key Vault to retrieve RSA Keys for encryption. Azure send me an object of type KeyBundle. This object contains a JsonWebKey of type RSA of size 2048 . Looking at my RSA Key, it has 2 methods called Encrypt(byte[] data, RSAEncryptionPadding padding) and Decrypt(byte[] data, RSAEncryptionPadding padding) . Now I am trying to encrypt and decrypt a simple string like this: public EncryptionManager(KeyBundle encryptionKey) { string test = "Hello World!"; var key = encryptionKey