keyvaultclient.decrypt() not working RRS feed

  • Question

  • hi there. i have a certificate in my azure key vault. im able to successfully sign the verify the data. But when im trying to decrypt using the key in the certificate using 

    keyVaultClientInstance.DecryptAsync(keyIdentifier: configuration["Azure:KeyVault:KeyIdentifier"], algorithm: algorithm, cipherText: basestring);

    im getting this error "Error occurred while decoding OAEP padding"

    please help

    Wednesday, August 28, 2019 5:16 AM

All replies

  • Would like to know how the data is being passed for decryption to understand this better.  Key Vault uses Base-64 URL encoding which is NOT the same as Base-64 encoding.  One of the major differences is that Base-64 encoding uses padding while BASE-64 URL encoding does not.
    Wednesday, August 28, 2019 3:35 PM
  • Hey tnlthanzeel

    Checking in to see if the if  can share some more details about the issue, so that we can check on this further. Let me know if there are still any additional issues I can help with

    Friday, August 30, 2019 5:23 AM
  • Please let us know if the above answers were helpful and remember to mark as answer.

    If none of the answers helped you, let us know, and we'll try to provide assistance. Thanks!

    Friday, August 30, 2019 10:52 PM