{"id":209,"date":"2007-10-05T07:36:06","date_gmt":"2007-10-05T12:36:06","guid":{"rendered":"https:\/\/blogs.mathworks.com\/videos\/2007\/10\/05\/masking-typed-passwords-with-asterisks\/"},"modified":"2016-01-15T09:45:52","modified_gmt":"2016-01-15T14:45:52","slug":"masking-typed-passwords-with-asterisks","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/videos\/2007\/10\/05\/masking-typed-passwords-with-asterisks\/","title":{"rendered":"Masking typed passwords with asterisks"},"content":{"rendered":"Sometimes really good files fly under my radar here at the File Exchange. Thankfully, my buddy Brett noticed this little gem. Here is what he had to say about it:\r\n<blockquote>A customer recently mentioned that he wanted to provide username and password information to a function for reading and writing URLs in a password-protected environment. Modifying URLREAD to take additional inputs was easy, and it wasn\u2019t too difficult to extract from some CSSM conversations an approach to modifying the core-MATLAB function to authenticate the password. My initial coding approach, however, required that the user visibly type (and therefore display) his password on his monitor. So the next step was implementing a dialog box that would hide passwords with a string of asterisks. While not an exceptionally daunting task, this is not necessarily trivial, either. But a quick search of the File Exchange revealed that Jeremy Smith had already implemented and posted code to do just that, in his LOGIN submission. I was able to steer the customer to Jeremy\u2019s code, and save both of us a good bit of coding\u2014and isn\u2019t that what the FEX is all about? While LOGIN may not suffice for extremely secure environments, its visual masking of passwords sufficed for this customer, and for most applications that I can think of. Nice work, Jeremy!<\/blockquote>\r\n<div><div class=\"row\"><div class=\"col-xs-12 containing-block\"><div class=\"bc-outer-container add_margin_20\"><videoplayer><div class=\"video-js-container\"><video data-video-id=\"3877438783001\" data-video-category=\"blog\" data-autostart=\"false\" data-account=\"62009828001\" data-omniture-account=\"mathwgbl\" data-player=\"rJ9XCz2Sx\" data-embed=\"default\" id=\"mathworks-brightcove-player\" class=\"video-js\" controls><\/video><script src=\"\/\/players.brightcove.net\/62009828001\/rJ9XCz2Sx_default\/index.min.js\"><\/script><script>if (typeof(playerLoaded) === 'undefined') {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== 'undefined') {videojs(\"mathworks-brightcove-player\").on('loadedmetadata', function() {playerLoaded = true;});} else {setTimeout(isVideojsDefined, 10);}})();<\/script><\/div><\/videoplayer><\/div><\/div><\/div><\/div>\r\n<a title=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/loadFile.do?objectId=8499&amp;objectType=file (link no longer works)\">\r\nGet the file here.<\/a>","protected":false},"excerpt":{"rendered":"<div class=\"thumbnail thumbnail_asset asset_overlay video\"><a href=\"https:\/\/blogs.mathworks.com\/videos\/2007\/10\/05\/masking-typed-passwords-with-asterisks\/?dir=autoplay\"><img decoding=\"async\" src=\"https:\/\/cf-images.us-east-1.prod.boltdns.net\/v1\/static\/62009828001\/a383acd2-bcc7-49ca-b85b-74c8923880a2\/2014e04c-f269-4633-a511-3c87f3e60507\/1280x720\/match\/image.jpg\" onError=\"this.style.display ='none';\"\/>\n      <div class=\"overlay_container\">\n      <span class=\"icon-video icon_color_null\"><time class=\"video_length\">0:50<\/time><\/span>\n      <\/div>\n      <\/a><\/div><p>Sometimes really good files fly under my radar here at the File Exchange. Thankfully, my buddy Brett noticed this little gem. Here is what he had to say about it:\r\nA customer recently mentioned that&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/videos\/2007\/10\/05\/masking-typed-passwords-with-asterisks\/\">read more >><\/a><\/p>","protected":false},"author":68,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts\/209"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/comments?post=209"}],"version-history":[{"count":2,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts\/209\/revisions"}],"predecessor-version":[{"id":1903,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts\/209\/revisions\/1903"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/media?parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/categories?post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/tags?post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}