Should i need too encrypt password before request my API in PHP

326 views
Skip to first unread message

Pascal Fournier

unread,
Jun 14, 2019, 1:57:39 PM6/14/19
to Flutter Development (flutter-dev)
Hello to all ! 

I have a question about security !

I have a login form in Flutter. When the user click on the login button, i send login information to my server (php)... should i need to encrypt the password in Flutter or i can do it in PHP ?

Thanks a lot ! 

Pascal

Andy Greenshaw

unread,
Jun 14, 2019, 2:47:41 PM6/14/19
to Flutter Development (flutter-dev), Pascal Fournier
How are you sending it? In the body of a POST? Over https?
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/fc7961f3-1688-43e8-85ef-2ad6092813d2%40googlegroups.com.

Pascal Fournier

unread,
Jun 14, 2019, 3:14:42 PM6/14/19
to Flutter Development (flutter-dev)
Hello Andy,

Thank a lot for your message ! 

Yes my server it in HTTPS.
In flutter i do :

final http.Response response =
await http.post(strurl, body: json.encode(info));


I read about JTW token... so my server will create a token that will be send back to Flutter... so in the next request by the app, i will send the Token....

But for the first time,  when user try to login, i sent in the http.resquest the email and password...

should i need to encrypt it or i don"t need ?

Thanks a lot !

Pascal


Le vendredi 14 juin 2019 14:47:41 UTC-4, Andy Greenshaw a écrit :
How are you sending it? In the body of a POST? Over https?
On 14 Jun 2019, 18:57 +0100, Pascal Fournier <pfour...@gmail.com>, wrote:
Hello to all ! 

I have a question about security !

I have a login form in Flutter. When the user click on the login button, i send login information to my server (php)... should i need to encrypt the password in Flutter or i can do it in PHP ?

Thanks a lot ! 

Pascal

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutt...@googlegroups.com.

Andy Greenshaw

unread,
Jun 14, 2019, 3:36:24 PM6/14/19
to Flutter Development (flutter-dev), Pascal Fournier
If in body of POST and https then no need to encrypt.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/619070f3-aa0a-48df-8565-981ecb6bba0f%40googlegroups.com.

Pascal Fournier

unread,
Jun 14, 2019, 3:37:55 PM6/14/19
to Flutter Development (flutter-dev)
ok thanks a lot Andy !
Have a good weekend ! 

Pascal
Reply all
Reply to author
Forward
0 new messages