Client-sided password generator (Javascript) -


i've stumbled upon desktop project (in particular executable program) generating random strings of data constantly/repetitively/continuously. here preview of below:

enter image description here

however, i'd code within javascript. since idea pretty perplex, cannot start nothing , hoping if here has developed similar or has notion how go doing in javascript give me information or other resources, maybe jquery plugins or whatever.

thank in advance!

this not particularly hard, except javascript's math.random not high-quality source of random numbers. might @ of released implementations of web cryptography api ideas of how improve on that.

once have that, converting stream of random numbers different formats should straightforward, , using mouse movements add entropy should not difficult.

which parts strike particularly difficult?

update:

i posted partial version on jsfiddle. shows how field continually updated , frozen. doesn't cryptography. still need convert mouse movements set of numeric values serve inputs more robust random number generator. converting mouse movements numbers pretty simple. again, @ web cryptography api more information.

it uses these snippets:

var getrandomhexdigit = function() {     return (math.floor(16 * math.random())).tostring(16).touppercase(); } 

and

setinterval(function() {     hex.value = hex.value.substring(1) + getrandomhexdigit(); }, 50); 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -