Skip to content

Connection String security question #1082

Answered by bgrainger
EugenM88 asked this question in Q&A
Discussion options

You must be logged in to vote

The password is never sent over the wire in plain text. (The user name may be.)

MySQL implements different "authentication plugins" that handle hashing/encrypting the password for transmission.

  • mysql_clear_password - this does send the password in clear text, but MySqlConnector will refuse to do that unless the session is already encrypted with TLS
  • mysql_native_password - probably the most common password hashing scheme; the password is hashed twice with SHA-1 and a random challenge sent from the server. Due to the use of SHA-1, this is now considered "weak", but I'm not aware of any attacks against it
  • caching_sha2_password - an updated version of the above that uses SHA-256 to be more s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@EugenM88
Comment options

Answer selected by EugenM88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants