Azure / AzureKeyVault

R interface to Azure Key Vault
Other
14 stars 7 forks source link

Decrypt with RSA-OAEP-256 changes original string #20

Open risksoft-atacana opened 5 months ago

risksoft-atacana commented 5 months ago

Hello Team,

I'll start by saying that I'm not a specialist in cryptology so I don't know if this really an issue but it certainly looks like one to me. If I encrypt a payload with a RSA key generated by Azure KeyVault i noticed that it changes the original string which I think it shouldn't

E.g: Plaintext payload = '08584846173588447584239977724CU183' Decrypted payload = '08584846173588447584239977724CU18w'

For both encryption and decryption I used RSA-OAEP-256 calling the KV decrypt/encrypt endpoints.

image

Please take a look into this