# secret
A text prompt which transforms the input to asterisks while typing.
## Example
![demo](https://assets.kazhala.me/InquirerPy/secret.gif)
Classic Syntax (PyInquirer)
```{eval-rst}
.. literalinclude :: ../../../examples/classic/secret.py
:language: python
```
Alternate Syntax
```{eval-rst}
.. literalinclude :: ../../../examples/alternate/secret.py
:language: python
```
## Keybindings
```{seealso}
{ref}`pages/kb:Keybindings`
```
```{include} ../kb.md
:start-after:
:end-before:
```
There are no additional keybindings created for this prompt besides the default keybindings and input buffer keybindings.
## Password Validation
```{seealso}
{ref}`pages/validator:PasswordValidator`
```
## Reference
```{eval-rst}
.. autoclass:: InquirerPy.prompts.secret.SecretPrompt
:noindex:
```