# InputPassword
> AstrolInputPassword focuses on privacy and security by hiding characters while the user types. By providing an additional level of confidentiality, it is ideal for forms and authentication processes where protecting sensitive information is paramount.
Source page: https://doc.astrolui.com/form/inputs-password
## 1. Demo AstrolInputPassword using EditForm
In this example, [notifications](/basic-component/notification), [buttons](/basic-component/button), [labels](/form/label), and [content inputs](/form/content-input) are implemented. It is recommended to refer to the documentation for each of them.
```razor
@using Astrol.Component.Basic.Button
@using Astrol.Component.Basic.Form
@using System.ComponentModel.DataAnnotations
@using Astrol.Entities.Basic.Static.Notification
@using Astrol.Entities.Basic.UI
@using Astrol.JSInterop.Base
@inject AstrolJSInterop jsI
@code {
```
```csharp
public class Login {
[Display(Name = "Password")]
[Required(ErrorMessage = "Password required.")]
[MinLength(6, ErrorMessage = "Minimum length of 6 characters.")]
public string Password { get; set; } = string.Empty;
}
private Login login = new Login();
private async Task HandleValidSubmit() {
await jsI.Notification("Sending form".NotificationSuccess("astrol-ok"));
}
}
```
### Supported parameters
- Value **(string)**, the password; bind it with **@bind-Value(required)**. It inherits **InputBase**: inside an **EditForm** it takes part in validation (**DataAnnotationsValidator**, **ValidationMessage**).
- Id **(string)**, HTML id of the input (to link a label).
- Class **(string)**, extra css class for the input.
- Placeholder **(string)**, input placeholder.
- ShowPassword **(bool)**, shows the password initially; the user can toggle it with the lock icon (default **false**).
- Autocomplete **(bool)**, allows browser autocomplete; with **false** it uses **autocomplete="new-password"** (default **true**).
- IconAriaLabel **(string)**, accessible text of the show/hide button (default follows the app language).
- HasShadow **(bool)** and FocusRing **(bool)**, shadow and effect of the **AstrolContentInput** container (default **true**).
- Other attributes (e.g. **maxlength**, **required**, **autofocus**) are applied to the input.