mirror of
https://github.com/google/nomulus.git
synced 2025-07-20 09:46:03 +02: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:
parent
5417797c8e
commit
9bb83dffa9
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue