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!

Developer technologies | .NET | Entity Framework Core
{count} votes

1 answer

Sort by: Most helpful
  1. Duane Arnold 3,216 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.