Q
Q
Qweqwe12342015-12-22 13:15:39
PHP
Qweqwe1234, 2015-12-22 13:15:39

Is mysqli authentication encrypted in php?

Is the transmission of authentication data encrypted when establishing a connection to a remote database in php when using mysqli?

$mysqli = new mysqli("example.com", "user", "password", "database");

upd. When establishing a connection to a remote database, are the user/password transfers for accessing the remote database transmitted in the clear or encrypted, so you don't have to worry that someone will intercept them?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Max, 2015-12-22
@Qweqwe1234

The workbench passes the hash instead of the password - I see no reason for mysqli to do otherwise.

A
Andrey Mokhov, 2015-12-22
@mokhovcom

for encryption use mysqli::real_connect

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question