paste.script.util.secret – create random secrets — Paste Script v1.7.4.1 documentation

### Navigation

- index
- modules |
- Paste Script v1.7.4.1 documentation »

# `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).

### Navigation

- index
- modules |
- Paste Script v1.7.4.1 documentation »