{"repo":"SoftFluent/EntityFrameworkCore.DataEncryption","free":true,"listed":false,"github":"https://github.com/SoftFluent/EntityFrameworkCore.DataEncryption","clone":"git clone https://github.com/SoftFluent/EntityFrameworkCore.DataEncryption.git","description":"A plugin for Microsoft.EntityFrameworkCore to add support of encrypted fields using built-in or custom encryption providers.","language":"C#","stars":349,"topics":["entity-framework-core","plugin","encryption","netstandard","netstandard20","dotnet-core","ef-core","custom-encryption"],"license":"MIT","category":"security-tools","readme_excerpt":"EntityFrameworkCore.DataEncryption EntityFrameworkCore.DataEncryption is a Microsoft Entity Framework Core extension to add support of encrypted fields using built-in or custom encryption providers. Disclaimer This project is maintained by SoftFluent This library has been developed initialy for a personal project of mine which suits my use case. It provides a simple way to encrypt column data. I do not take responsability if you use/deploy this in a production environment and loose your encryption key or corrupt your data. How to install Install the package from NuGet or from the Package Manager Console : Supported types Type Default storage type ------ ---------------------- string Base64 string byte[] BINARY Built-in providers Name Class Extra ------ ------- ------- AES AesProvider Can use a 128bits, 192bits or 256bits key How to use EntityFrameworkCore.DataEncryption supports 2 differents initialization methods: Attribute Fluent configuration Depending on the initialization method you will use, you will need to decorate your string or byte[] properties of your entities with the [Encrypted] attribute or use the fluent IsEncrypted() method in your model configuration process. To use an encryption provider on your EF Core model, and enable the encryption on the ModelBuilder . Example with AesProvider and attribute The code bellow creates a new AesProvider and gives it to the current model. It will encrypt every string fields of your model that has the [Encrypted] attribute wh","default_branch":null,"files":null,"tree":[],"storefront":"/r/SoftFluent","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SoftFluent/EntityFrameworkCore.DataEncryption/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}