C
C
Chvalov2014-10-07 14:05:57
Hashing
Chvalov, 2014-10-07 14:05:57

How to encrypt password in md5 in fat-free framework and send using post method?

Hello, I'm making a website following this example: valex.net.ru/fatfree-mvc.html
Only I have my own users there and completely different fields.
On that basis, I make an admin panel with the ability to edit users.
4c1b99ef0747451d9565bca79322fafd.PNG
371adf5bf5f24d568f9a29edcbed0f2b.PNG
But I don’t know how to transfer the encrypted password in md5 to the table, since it transmits in text.
There is an option to make it in js so that it encodes the line in md5 and transmits it as a post already in finished form.
but I think that this can be done somehow more reasonably without using js, but I don’t know how, I didn’t find anything detailed about registration, only about authorization.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
German Jet, 2014-10-07
@GeraJet

Maybe I don't understand something, but why can't you use md5($password) before adding it to the database?
php.net/manual/en/function.md5.php

A
asdz, 2014-10-07
@asdz

You just need to use HTTPS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question