<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Does MySQL Send Passwords In the Clear?</title>
	<link>http://www.pythian.com/blogs/882/does-mysql-send-passwords-in-the-clear</link>
	<description>News and views from Pythian DBAs</description>
	<pubDate>Fri,  8 Aug 2008 21:08:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: Matthew Montgomery</title>
		<link>http://www.pythian.com/blogs/882/does-mysql-send-passwords-in-the-clear#comment-172335</link>
		<dc:creator>Matthew Montgomery</dc:creator>
		<pubDate>Thu, 20 Mar 2008 03:51:13 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/882/does-mysql-send-passwords-in-the-clear#comment-172335</guid>
		<description>@Tom Krouper

It does already...

$ ./bin/mysqlbinlog data/katzs-binlog.000001  &#124; grep PASSWORD
SET PASSWORD FOR 'root'@'localhost'='*E74858DB86EBA20BC33D0AECAE8A8108C56B17FA'/*!*/;</description>
		<content:encoded><![CDATA[<p>@Tom Krouper</p>
<p>It does already&#8230;</p>
<p>$ ./bin/mysqlbinlog data/katzs-binlog.000001  | grep PASSWORD<br />
SET PASSWORD FOR &#8216;root&#8217;@'localhost&#8217;='*E74858DB86EBA20BC33D0AECAE8A8108C56B17FA&#8217;/*!*/;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Krouper</title>
		<link>http://www.pythian.com/blogs/882/does-mysql-send-passwords-in-the-clear#comment-172290</link>
		<dc:creator>Tom Krouper</dc:creator>
		<pubDate>Thu, 20 Mar 2008 00:52:05 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/882/does-mysql-send-passwords-in-the-clear#comment-172290</guid>
		<description>I kind of wish that the set password and grant weren't put in clear text. Anyway to get the binary log to add the encrypted version of the password?</description>
		<content:encoded><![CDATA[<p>I kind of wish that the set password and grant weren&#8217;t put in clear text. Anyway to get the binary log to add the encrypted version of the password?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Karwin</title>
		<link>http://www.pythian.com/blogs/882/does-mysql-send-passwords-in-the-clear#comment-172278</link>
		<dc:creator>Bill Karwin</dc:creator>
		<pubDate>Wed, 19 Mar 2008 23:42:46 +0000</pubDate>
		<guid>http://www.pythian.com/blogs/882/does-mysql-send-passwords-in-the-clear#comment-172278</guid>
		<description>Right; MySQL authentication never transmits passwords in the clear, but many web apps use their own authentication instead of MySQL passwords.  It's up to the application developer to encode passwords instead of transmitting them in the clear.  In other words, what's the difference between the following two queries:

SELECT (MD5(?) = a.password_hash) AS is_match FROM accounts a WHERE a.login = ?;
-- send password in the clear and encode it in the SQL engine

SELECT (? = a.password_hash) AS is_match FROM accounts a WHERE a.login = ?; 
-- encode password in the application and send MD5 digest to the RDBMS</description>
		<content:encoded><![CDATA[<p>Right; MySQL authentication never transmits passwords in the clear, but many web apps use their own authentication instead of MySQL passwords.  It&#8217;s up to the application developer to encode passwords instead of transmitting them in the clear.  In other words, what&#8217;s the difference between the following two queries:</p>
<p>SELECT (MD5(?) = a.password_hash) AS is_match FROM accounts a WHERE a.login = ?;<br />
&#8211; send password in the clear and encode it in the SQL engine</p>
<p>SELECT (? = a.password_hash) AS is_match FROM accounts a WHERE a.login = ?;<br />
&#8211; encode password in the application and send MD5 digest to the RDBMS</p>
]]></content:encoded>
	</item>
</channel>
</rss>
