Skip to content

Instantly share code, notes, and snippets.

Jason Axley jaxley

Block or report user

Report or block jaxley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jaxley
jaxley / random_string.js
Created Jul 20, 2018 — forked from mozfreddyb/random_string.js
generate random strings, e.g., for passwords
View random_string.js
/*
A function to generate secure random 16-32 character passwords in your browser, using the character set
A-Za-z0-9@-
*/
/*
in one line for bookmarkletts:
javascript:!function(){"use strict";function r(){var r=new Uint16Array(n);window.crypto.getRandomValues(r);var r=Array.apply([],r);return r=r.filter(function(r){return r===45 || r>=47&&r<=57 || r>=64&&r<=90 || r>=97&&r<=122}),String.fromCharCode.apply(String,r)}for(var n=32,t=16,a=r();a.length<t;)a+=r();prompt("",a)}();
*/
You can’t perform that action at this time.