3 ms·
here's my lazy PW script, written in node. :) require('uuid').v4().split('-').join('')
by MrLeap 8y ago
here's my lazy PW script, written in node. :)
require('uuid').v4().split('-').join('')
- minitech 8y agoWhy remove the hyphens? If that’s wanted, there’s the more direct: crypto.randomBytes(16).toString('hex')
- earenndil 8y agoThey don't _really_ affect your entropy that much (since the attacker doesn't know your character set in the first place), and some websites disallow certain characters.
- tomjakubowski 8y agoA funny little flaw in this is that 13th character of those passwords is always "4", right?
- deleted 8y ago[deleted]
- hoytech 8y agoAnd the character that was after the 3rd hyphen is always one of [89ab].
- giancarlostoro 8y agoIn Python for those who don't want to install node and run Debian / Ubuntu or any distro that includes Python out of the box: >>> import uuid >>> uuid.uuid4().hex Interesting someone else mentioned the 14th character is always a 4... I am creeped out just a little bit (cause I never noticed).
- Tostino 8y agoThat's because it indicates the version of uuid it is.
- deleted 8y ago[deleted]