joshua-d-miller / macOSLAPS

Swift binary that will change a local administrator password to a random generated password. Similar behavior to LAPS for Windows
MIT License
383 stars 57 forks source link

Request - generate password from character set #1

Closed bartreardon closed 7 years ago

bartreardon commented 7 years ago

as per the title - can we have a random password generated from a given set. It's not obvious (or easy) to say remove all non alphanumeric characters if, for example, it's determined that [a-z][1-9] is sufficient for requirements.

The idea here would be a seperate key from RemovePassChars, perhaps called LimitPassChars.

joshua-d-miller commented 7 years ago

Thank you for this suggestion. I have gone ahead and released a new version of macOSLAPS with the new key ExclusionSets. Give it a try and let me know! 👍

bartreardon commented 7 years ago

looks good - I'll give it a go, thanks :)

joshua-d-miller commented 7 years ago

Did this work for you?

bartreardon commented 7 years ago

sorry for not getting back earlier - works well 👍

joshua-d-miller commented 7 years ago

Thank you for the update :)