snipt

Ctrl+h for KB shortcuts
#25002

Bash

generar passwords

 < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c10
https://snipt.net/embed/c0e47c099d30110912c064f69245f23b/
https://snipt.net/raw/c0e47c099d30110912c064f69245f23b/
c0e47c099d30110912c064f69245f23b
bash
Bash
1
2014-04-16T17:34:14
True
False
/api/public/snipt/25002/
generar-passwords
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a> &lt; /dev/urandom tr -dc _A-Z-a-z-0-9 <span class="p">|</span> head -c10 </span></pre></div> </td></tr></table>
linux, passwords, security
#6808

JavaScript

Attach Behaviours

1
2
3
4
// Attaches the behavior to the form, password_field_id is the id of the visible form field, hidden_password is the id of the hidden field containing the real password the user types in  , these behaviors get applied onload 
Event.addBehavior({
    'form.awesome' : AwesomePassword({ password_field_id : 'password', hidden_password : 'realPassword' })
});
https://snipt.net/embed/26511e9fbf6b7633d7754676b64c00b1/
https://snipt.net/raw/26511e9fbf6b7633d7754676b64c00b1/
26511e9fbf6b7633d7754676b64c00b1
js
JavaScript
4
2014-04-05T04:06:18
True
False
/api/public/snipt/6808/
attach-behaviours
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c1">// Attaches the behavior to the form, password_field_id is the id of the visible form field, hidden_password is the id of the hidden field containing the real password the user types in , these behaviors get applied onload </span> </span><span id="L-2"><a name="L-2"></a><span class="nx">Event</span><span class="p">.</span><span class="nx">addBehavior</span><span class="p">({</span> </span><span id="L-3"><a name="L-3"></a> <span class="s1">&#39;form.awesome&#39;</span> <span class="o">:</span> <span class="nx">AwesomePassword</span><span class="p">({</span> <span class="nx">password_field_id</span> <span class="o">:</span> <span class="s1">&#39;password&#39;</span><span class="p">,</span> <span class="nx">hidden_password</span> <span class="o">:</span> <span class="s1">&#39;realPassword&#39;</span> <span class="p">})</span> </span><span id="L-4"><a name="L-4"></a><span class="p">});</span> </span></pre></div> </td></tr></table>
javascript, passwords