Skip to content

Instantly share code, notes, and snippets.

View sgnls's full-sized avatar

sgnls

View GitHub Profile

Keybase proof

I hereby claim:

  • I am sgnls on github.
  • I am sgnls (https://keybase.io/sgnls) on keybase.
  • I have a public key ASA3AXOP3BGDNxpqq-tHsaXfS2b7-d4VYchJtfP9WY608Ao

To claim this, I am signing this object:

@sgnls
sgnls / strong-passwords.php
Created February 14, 2017 13:18 — forked from tylerhall/strong-passwords.php
A user friendly, strong password generator PHP function.
<?PHP
// Generates a strong password of N length containing at least one lower case letter,
// one uppercase letter, one digit, and one special character. The remaining characters
// in the password are chosen at random from those four sets.
//
// The available characters in each set are user friendly - there are no ambiguous
// characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option,
// makes it much easier for users to manually type or speak their passwords.
//
// Note: the $add_dashes option will increase the length of the password by