Decrypt data from the database

JJ TT 141 Reputation points
2021-05-23T05:36:27.337+00:00

Hello,

Based on this article you learn about how to encrypt data but there is an important part about decryption..

How do you decrypt data from the database based on this article?
https://emrekizildas.medium.com/encrypt-your-database-columns-with-entityframework-1f129b19bdf8

Thank you!

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
678 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Duane Arnold 3,221 Reputation points
    2021-05-23T12:53:55.337+00:00

    @JJ TT

    The article suggest that the encrypt and decrypt should be happening in the Entity class' get/set that's in the DBcontext, which makes sense to me as to where it should be happening becuase the get/set of a class property can execute methods. The encrypt and decrypt logic is in another link on the article page.

    https://www.tabsoverspaces.com/233700-custom-encryption-of-field-with-entity-framework-core

    HTH

    0 comments No comments