Add a full ASCII StringGenerator alphabet (#882)

* Add a full ASCII StringGenerator alphabet

This is intended for the purpose of generating maximally secure passwords for
PostgreSQL and others. We may need to remove a few of these punctuation
characters if they prove to be more trouble than they're worth (e.g. backtick).
This commit is contained in:
Ben McIlwain 2020-11-19 18:08:04 -05:00 committed by GitHub
parent 5417797c8e
commit 9bb83dffa9

View file

@ -39,6 +39,10 @@ public abstract class StringGenerator implements Serializable {
/** Digit-only alphabet. */
public static final String DIGITS_ONLY = "0123456789";
/** Full ASCII alphabet with a wide selection of punctuation characters. */
public static final String FULL_ASCII =
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~!@#$%^&*()_-+={}[]\\/<>,.;?':| ";
}
protected String alphabet;