Eastrall / EntityFrameworkCore.DataEncryption

A plugin for Microsoft.EntityFrameworkCore to add support of encrypted fields using built-in or custom encryption providers.
MIT License
329 stars 55 forks source link

Unable to correctly decrypt even it has the same AES key and IV #2

Closed egenita closed 4 years ago

egenita commented 5 years ago

Hi, The decryption is not working properly when the data is being accessed in other system even it share the same encryption key and IV. Do you know why it is so?

Thanks

Eastrall commented 5 years ago

Hello,

Thank you for using EntityFrameworkCore.DataEncryption! Sharing same encryption key and IV is not enough. You also need share the way you encrypt data. Meaning, having the correct CipherMode and PaddingMode on each sides.

Hope it helps.

Eastrall commented 4 years ago

Closing issue.