<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://turecki.net"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Michał Turecki - javascript</title>
 <link>https://turecki.net/tags/javascript</link>
 <description></description>
 <language>en</language>
<item>
 <title>Online encode and decode base64, hex,  url</title>
 <link>https://turecki.net/content/online-encode-and-decode-base64-hex-url</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
&lt;!--//--&gt;&lt;![CDATA[// &gt;&lt;!--

&lt;!--

function urlDecode(s)
{
    return decodeURIComponent(s);
}

function urlEncode(s)
{
    return encodeURI(s);
}

function base64Decode(s)
{
    return window.atob(s);
}

function base64Encode(s)
{
    return window.btoa(s);
}

function hexDecode(s)
{
    var r = &#039;&#039;;
    for(var i = 0; i &lt; s.length; i += 2)
    {
        r += String.fromCharCode(parseInt(s.substr(i, 2), 16));
    }
    return r;
}

function hexEncode(s)
{
    var hex;
    var r = &#039;&#039;;
    for(var i = 0; i &lt; s.length; i++)
    {
        r += s.charCodeAt(i).toString(16);
    }
    return r;
}

//--&gt;
//--&gt;&lt;!]]&gt;
&lt;/script&gt;&lt;form name=&quot;encoder&quot; onsubmit=&quot;return false;&quot; id=&quot;encoder&quot;&gt;
&lt;textarea name=&quot;text&quot; rows=&quot;10&quot; style=&quot;width:80%;&quot;&gt;&lt;/textarea&gt;
&lt;table style=&quot;width: auto&quot;&gt;
&lt;tr&gt;
&lt;td&gt;&lt;input value=&quot;Encode&quot; type=&quot;button&quot; onclick=&quot;document.encoder.text.value=urlEncode(document.encoder.text.value)&quot; /&gt;&lt;/td&gt;
&lt;td&gt;URL&lt;/td&gt;
&lt;td&gt;&lt;input value=&quot;Decode&quot; type=&quot;button&quot; onclick=&quot;document.encoder.text.value=urlDecode(document.encoder.text.value)&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;input value=&quot;Encode&quot; type=&quot;button&quot; onclick=&quot;document.encoder.text.value=base64Encode(document.encoder.text.value)&quot; /&gt;&lt;/td&gt;
&lt;td&gt;Base 64&lt;/td&gt;
&lt;td&gt;&lt;input value=&quot;Decode&quot; type=&quot;button&quot; onclick=&quot;document.encoder.text.value=base64Decode(document.encoder.text.value)&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;input value=&quot;Encode&quot; type=&quot;button&quot; onclick=&quot;document.encoder.text.value=hexEncode(document.encoder.text.value)&quot; /&gt;&lt;/td&gt;
&lt;td&gt;Hex&lt;/td&gt;
&lt;td&gt;&lt;input value=&quot;Decode&quot; type=&quot;button&quot; onclick=&quot;document.encoder.text.value=hexDecode(document.encoder.text.value)&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan=&quot;3&quot;&gt;&lt;input type=&quot;reset&quot; value=&quot;Clear&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/form&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/tags/programming&quot;&gt;programming&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/tags/decode&quot;&gt;decode&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/tags/encode&quot;&gt;encode&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/tags/javascript&quot;&gt;javascript&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/tags/online&quot;&gt;online&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Mon, 09 May 2016 08:19:08 +0000</pubDate>
 <dc:creator>Michał Turecki</dc:creator>
 <guid isPermaLink="false">38 at https://turecki.net</guid>
 <comments>https://turecki.net/content/online-encode-and-decode-base64-hex-url#comments</comments>
</item>
<item>
 <title>How to reveal passwords (asterisks) on web pages using Google Chrome Inspect Element tool</title>
 <link>https://turecki.net/content/how-reveal-passwords-asterisks-web-pages-using-google-chrome-inspect-element-tool</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;A quick howto:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Right click on a password box with password entered into it by a password manager or another user and select &quot;Inspect element&quot;. If right mouse button is disabled - press F12 and try again.&lt;/li&gt;
&lt;li&gt;Make a note of id=&quot;xxx&quot; property on the input tag&lt;/li&gt;
&lt;li&gt;In the address bar type (case sensitive):&lt;br /&gt;
&lt;pre&gt;
javascript:alert(document.getElementById(&#039;xxx&#039;).value);
&lt;/pre&gt;&lt;p&gt;Where xxx is the name identified in step 2.
&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;You should see the alert window displaying the hidden password.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/tags/chrome&quot;&gt;chrome&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/tags/javascript&quot;&gt;javascript&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 25 Jul 2013 15:23:52 +0000</pubDate>
 <dc:creator>Michał Turecki</dc:creator>
 <guid isPermaLink="false">19 at https://turecki.net</guid>
 <comments>https://turecki.net/content/how-reveal-passwords-asterisks-web-pages-using-google-chrome-inspect-element-tool#comments</comments>
</item>
</channel>
</rss>
