Encrypted data in database tables

QuestionsEncrypted data in database tables
Chinu asked 10 years ago

Hello Abu.
Greetings for the day !

Firstly, I would like to thank you heartily for this great piece of php code! It saved my time and effort.

Thank you !

I m a novice developer trying to build a system for an NGO.
The NGO member details are stored after encryption in the database using the following piece of code

http://blog.justin.kelly.org.au/simple-mcrypt-encrypt-decrypt-functions-for-p/

I would be grateful to you if you could help me decrypt the data after its retrieval from DB and before displaying it in the grid.

Also, the data that the user shall edit, be encrypted using the function in the above link before it is updated to the DB.

Looking forward to a positive reply from you.
Thank you.
Many Best Wishes !

1 Answers
Abu Ghufran answered 10 years ago

Hi,

You have to use custom events like on_insert, on_update for encryption while add/edit records and 'on_data_display' to decrypt whlie display.

Events are supported in full version, and if already using it, you can refer demos/editing/custom-events.php

Your Answer

20 + 0 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?