<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<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: MATLAB can &#8220;txt msg u :)&#8221;</title>
	<link>http://blogs.mathworks.com/pick/2007/10/23/matlab-can-txt-msg-u/</link>
	<description>&#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=969735&#38;objectType=author"&#62;Bob&#60;/a&#62;, &#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1093599&#38;objectType=author"&#62;Brett&#60;/a&#62; &#38; &#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1094142&#38;objectType=author"&#62;Jiro&#60;/a&#62; share favorite user-contributed submissions from the File Exchange.</description>
	<pubDate>Sun, 08 Nov 2009 02:27:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Ke Feng</title>
		<link>http://blogs.mathworks.com/pick/2007/10/23/matlab-can-txt-msg-u/#comment-3643</link>
		<dc:creator>Ke Feng</dc:creator>
		<pubDate>Wed, 24 Oct 2007 22:09:25 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/10/23/matlab-can-txt-msg-u/#comment-3643</guid>
		<description>If you know an SMTP server which doesn't require login (you company may provide you one), you can use that to avoid the password line. If you don't know any SMTP server, you can install one free on your own computer:
http://www.softstack.com/freesmtp.html.

To use your own (or your company's) SMTP server, delete the following lines:
password = 'xxxxxxxxx';
setpref('Internet','SMTP_Username',mail);
setpref('Internet','SMTP_Password',password);
props = java.lang.System.getProperties;
props.setProperty('mail.smtp.auth','true');
props.setProperty('mail.smtp.socketFactory.class', 'javax.net.ssl.SSLSocketFactory');
props.setProperty('mail.smtp.socketFactory.port','465');

and change the following line:
setpref('Internet','SMTP_Server','smtp.gmail.com');
to your own server. If you use that program I mentioned above, use '127.0.0.1' instead of 'smtp.gmail.com'. Then you won't need any password.</description>
		<content:encoded><![CDATA[<p>If you know an SMTP server which doesn&#8217;t require login (you company may provide you one), you can use that to avoid the password line. If you don&#8217;t know any SMTP server, you can install one free on your own computer:<br />
<a href="http://www.softstack.com/freesmtp.html." rel="nofollow">http://www.softstack.com/freesmtp.html.</a></p>
<p>To use your own (or your company&#8217;s) SMTP server, delete the following lines:<br />
password = &#8216;xxxxxxxxx&#8217;;<br />
setpref(&#8217;Internet&#8217;,'SMTP_Username&#8217;,mail);<br />
setpref(&#8217;Internet&#8217;,'SMTP_Password&#8217;,password);<br />
props = java.lang.System.getProperties;<br />
props.setProperty(&#8217;mail.smtp.auth&#8217;,'true&#8217;);<br />
props.setProperty(&#8217;mail.smtp.socketFactory.class&#8217;, &#8216;javax.net.ssl.SSLSocketFactory&#8217;);<br />
props.setProperty(&#8217;mail.smtp.socketFactory.port&#8217;,'465&#8242;);</p>
<p>and change the following line:<br />
setpref(&#8217;Internet&#8217;,'SMTP_Server&#8217;,&#8217;smtp.gmail.com&#8217;);<br />
to your own server. If you use that program I mentioned above, use &#8216;127.0.0.1&#8242; instead of &#8217;smtp.gmail.com&#8217;. Then you won&#8217;t need any password.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blogs.mathworks.com/pick/2007/10/23/matlab-can-txt-msg-u/#comment-3634</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Wed, 24 Oct 2007 20:12:50 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/10/23/matlab-can-txt-msg-u/#comment-3634</guid>
		<description>Tim,

An excellent thought.  Anyone made a little encryption routine for MATLAB?  If not, this GUI that I promoted earlier:

http://blogs.mathworks.com/pick/2007/10/05/masking-typed-passwords-with-asterisks/

might be helpful!

Thanks,
Doug</description>
		<content:encoded><![CDATA[<p>Tim,</p>
<p>An excellent thought.  Anyone made a little encryption routine for MATLAB?  If not, this GUI that I promoted earlier:</p>
<p><a href="http://blogs.mathworks.com/pick/2007/10/05/masking-typed-passwords-with-asterisks/" rel="nofollow">http://blogs.mathworks.com/pick/2007/10/05/masking-typed-passwords-with-asterisks/</a></p>
<p>might be helpful!</p>
<p>Thanks,<br />
Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Davis</title>
		<link>http://blogs.mathworks.com/pick/2007/10/23/matlab-can-txt-msg-u/#comment-3633</link>
		<dc:creator>Tim Davis</dc:creator>
		<pubDate>Wed, 24 Oct 2007 20:07:27 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2007/10/23/matlab-can-txt-msg-u/#comment-3633</guid>
		<description>This is really cool, but entering a password in plain text into a file is a really bad security risk; particularly if that file has the word "password" on the same line.  Yikes!  Makes for a good target via an automatic file search.

It would be better if the password was encrypted somehow.  For example, a MATLAB GUI could prompt you for your email and password.  Then that GUI could twiddle the password with some a reversible operation and then that password could be saved in a MATLAB *.mat file.  At least that would make it hard for a non-MATLAB savvy hacker, or virus, to sniff out the password.

Then, in addition, the m-file here should not use the variable name "password" or use the word "password" in any comments.

I'm sure there are better techniques - Java, via MATLAB, can do encryption and decryption, for example.</description>
		<content:encoded><![CDATA[<p>This is really cool, but entering a password in plain text into a file is a really bad security risk; particularly if that file has the word &#8220;password&#8221; on the same line.  Yikes!  Makes for a good target via an automatic file search.</p>
<p>It would be better if the password was encrypted somehow.  For example, a MATLAB GUI could prompt you for your email and password.  Then that GUI could twiddle the password with some a reversible operation and then that password could be saved in a MATLAB *.mat file.  At least that would make it hard for a non-MATLAB savvy hacker, or virus, to sniff out the password.</p>
<p>Then, in addition, the m-file here should not use the variable name &#8220;password&#8221; or use the word &#8220;password&#8221; in any comments.</p>
<p>I&#8217;m sure there are better techniques - Java, via MATLAB, can do encryption and decryption, for example.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
