Base solution for your next web application
Open Closed

Data encryption #247


User avatar
0
dan smith created

I'm looking to encrypt some of the data I'm storing via ABP and EF. We are collecting data from users and some of the personal data (phone numbers, address, etc) I want to keep the data safe (or at least safer) from hackers. Anybody have any suggestions?


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    There is no built-in mechanism for that. You can do it manually. Encrypt data while saving entities and decrypt it after getting from database.

    I suggest to make conversion while mapping entity to DTO if it's possible (if it's not needed in the server side). You can define converters while auto mapping (see automapper docs).

    Notice that; do not change value on entity after getting database since all changes on the entity will be saved when UOW is completed.