> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# isPasswordEncrypted

> Checks if a wallet is password encrypted

## Function Signature

```typescript theme={"system"}
isPasswordEncrypted(params: {
  accountAddress: string;
  walletMetadata: WalletMetadata;
  backupInfo?: KeyShareBackupInfo;
}): Promise<boolean>
```

## Description

Checks whether a wallet's backup is password-encrypted. This is read off the `walletMetadata.externalServerKeySharesBackupInfo.passwordEncrypted` flag.

## Parameters

### Required Parameters

* **`accountAddress`** (`string`) - The wallet address (must include `0x` prefix). Must match `walletMetadata.accountAddress`.
* **`walletMetadata`** ([`WalletMetadata`](/node/reference/types/wallet-metadata)) - The cached metadata for this wallet

### Optional Parameters

* **`backupInfo`** ([`KeyShareBackupInfo`](/node/reference/types/key-share-backup-info)) - Pre-resolved backup info; if omitted the SDK reads it from `walletMetadata`.

## Returns

* **`Promise<boolean>`** - `true` if the wallet's backup is password-encrypted, `false` otherwise

## Example

```typescript theme={"system"}
import { authenticatedEvmClient } from './client';

const evmClient = await authenticatedEvmClient();
const walletMetadata = JSON.parse(await redis.get(`wallet:${accountAddress}`));

const isEncrypted = await evmClient.isPasswordEncrypted({
  accountAddress,
  walletMetadata,
});

console.log('Is password encrypted:', isEncrypted);
```

## Related Functions

* [`requiresPasswordForOperation()`](/node/reference/evm/requires-password-for-operation) - Check if operation requires password
* [`verifyPassword()`](/node/reference/evm/verify-password) - Verify wallet password
