mirror of
https://github.com/google/nomulus
synced 2026-01-06 21:47:31 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user