# Passwordtools

> Passwordtools is an Agent Skill for devops & security published in the CoderWanFeng/python-office repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

生成指定长度的随机密码。当用户提到生成密码、随机密码、强密码、密码生成器时使用。

- Skill name: `passwordtools`
- Category: [DevOps & Security](https://www.openparable.com/skill/devops-security/1)
- Source: https://github.com/CoderWanFeng/python-office/blob/HEAD/skills/tools/passwordtools/SKILL.md
- Repository: CoderWanFeng/python-office (1,326 GitHub stars when collected)

## SKILL.md

# passwordtools Skill

> 生成一个指定长度的密码

## 功能描述

生成指定长度的随机密码。

## 所属分类

`office/skills/tools/passwordtools/`

## 调用方式

```python
from office.skills.tools import passwordtools

pwd = passwordtools(len=12)
print(pwd)
```

## 参数说明

| 参数 | 类型 | 必填 | 默认值 | 说明 |
|------|------|------|--------|------|
| `len` | int | 否 | `8` | 密码长度 |

## 返回值

`str`：生成的密码

## 使用示例

```python
from office.skills.tools import passwordtools
pwd = passwordtools(len=16)
print(f"生成的密码: {pwd}")
```

## 原始函数

`office.api.tools.passwordtools`

---

Source: https://www.openparable.com/skill/devops-security/passwordtools (OpenParable). Cite the canonical URL above.
