How To Store Encrypted Data Collected By Your Web Application With PHP7 and LibSodiumby@simone-ricci
2,177 reads

How To Store Encrypted Data Collected By Your Web Application With PHP7 and LibSodium

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

This article shows how to build a simple landing page that encrypts private data. It uses Sodium crypto libraries, which are included as PHP extensions in 7.1, 7.2 and 7.3. We will build a very basic admin panel (for testing purposes only) with a feature that allows us to search for an email or a phone in the database, even if they are encrypted. The encryption keys should be stored at least on the web server, never on the database. The main problem is to check or search for those data, once they have been encrypted.

Company Mentioned

Mention Thumbnail
featured image - How To Store Encrypted Data Collected By Your Web Application With PHP7 and LibSodium
simone ricci HackerNoon profile picture

@simone-ricci

simone ricci

lamorbidamacchina.com


Receive Stories from @simone-ricci

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!