---
title: "Password animated icon"
description: "Password animated icon (Account & privacy). Masked characters type into the field one by one and stay entered."
canonical: https://generativeicons.com/icons/password/
---

# Password animated icon

Masked characters type into the field one by one and stay entered.

- Id: `password`
- Category: Account & privacy
- Search terms: passcode, pin code, passphrase, pwd, secret, credentials, masked input, hidden text, asterisks, enter pin
- Two states: prepared to result, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/password.lottie (dotLottie, 7320 bytes, sha256 7b4234011839ece3a84b433569dfa5234ce8f990bb0f03c926ff6a81224bbca6)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add password
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/password.mjs';

export function PasswordIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/password.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/password/ · https://generativeicons.com/api/icons/password
