U
U
unknown592016-06-09 21:36:37
PHP
unknown59, 2016-06-09 21:36:37

Need an RSA function to encrypt data from a form on your site?

Noob question, but do not judge strictly, I'm just learning. Let's say there is a site like an online store written in html php manually, it has a form for filling in the customer's data (full name, delivery address, phone number, etc.), these data are entered into the appropriate table in the database. The task was to implement an RSA-based function that would encrypt data before sending it to the database and decrypt it when displayed in the admin panel. That is, already encrypted data should be stored in the database. I rummaged through Google did not find anything sensible (maybe I'm stupid). Ideally, you need a specific code example, with explanations for dummies.
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Aksentiev, 2016-06-09
@Sanasol

https://dev.mysql.com/doc/refman/5.5/en/encryption...

M
Max Kostikov, 2016-06-09
@mxms

In a Javascript browser, see https://github.com/travist/jsencrypt
On a server, see your backend.

M
Michael, 2016-06-09
@Madfisht3

Why encrypt them in the database? Does anyone else have access to the database? Where is the key stored then?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question