Closed svidem closed 3 years ago
Found the problem, add buffer when initializing the memory stream on row 52 in GenerateEncryptionProvider.
From
using MemoryStream memoryStream = new();
To
using MemoryStream memoryStream = new(buffer);
https://github.com/emrekizildas/EntityFrameworkCore.EncryptColumn/pull/2
It's closed.
I have tested you example https://github.com/emrekizildas/EntityFrameworkCore.EncryptColumn.Example and the first time it works, the second time I run it I get the following output:
It seems like it can't decrypt objects created by another instance of the DBContext.