paste.script.util.secret
– create random secrets¶
Create random secrets.
Module Contents¶
- paste.script.util.secret.secret_string(length=25)¶
Returns a random string of the given length. The string is a base64-encoded version of a set of random bytes, truncated to the given length (and without any newlines).