sethvargo / go-password

A Golang library for generating high-entropy random passwords similar to 1Password or LastPass.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to override symbols seed

rendicott opened this issue · comments

Lots of things don't allow all symbols (e.g., AWS IAM). It would be nice if the password.Symbols wasn't a constant so I can override it with my own valid symbol set.

I could switch it to a variable, but then you have global state. I guess I'm indifferent. I don't think there's much of a performance implication, but I worry it could be a security hole. Someone could set that to the empty string...

Thanks, your way is much better.