Unable to use EntityFrameworkCore.DataEncryption

c# encryption entity-framework-core

Question

I am trying to use EntityFrameworkCore.DataEncryption. I am unable to retrieve records from the database. I am getting the encryption padding error while reading the records as per the example.

https://entityframeworkcore.com/knowledge-base/54663388/data-encryption-in-data-layer-with-asp-net-core-entity-framework

PS. @Eastrall I am unable to add comments for my query on Data Encryption in Data Layer with ASP.NET Core Entity Framework so added a new question here.

1
0
3/22/2020 7:02:22 PM

Accepted Answer

I have used the AES256Bits as block size and set PaddingMode.PKCS7. Make sure you save the keys and use the same key for subsequent read and write operations. This will stop any errors while parsing the records as well.

0
4/14/2020 4:35:08 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow