# Secrets Manager SDK

{% hint style="success" %}
对应的[官方文档地址](https://bitwarden.com/help/secrets-manager-sdk/)
{% endhint %}

Secrets Manager 软件开发工具包 (SDK) 可帮助开发人员创建用于机密管理的应用程序。Bitwarden 团队使用 Secrets Manager SDK 来构建与 [GitHub Actions](https://bitwarden.com/help/github-actions-integration/) 等流行产品的离散集成，社区成员可以使用它来构建自己的应用程序。

核心 SDK（可在[这里](https://github.com/bitwarden/sdk)找到）使用 Rust 编写，并提供 Rust API、CLI 和 Node-API 绑定。之所以选择 Rust 是因为它的内存安全性、对我们计划构建集成的多种编程语言的绑定，以及它对 WebAssembly 的支持。语言封装器可用于以下语言：

* [C++](https://github.com/bitwarden/sdk-sm/tree/main/languages/cpp#readme)
* [C#](https://github.com/bitwarden/sdk-sm/tree/main/languages/csharp#readme)
* [Go](https://github.com/bitwarden/sdk-sm/tree/main/languages/go#readme)
* [Java](https://github.com/bitwarden/sdk-sm/tree/main/languages/java#readme)
* [JS](https://github.com/bitwarden/sdk-sm/tree/main/languages/js)
* [PHP](https://github.com/bitwarden/sdk-sm/tree/main/languages/php#readme)
* [Python](https://github.com/bitwarden/sdk-sm/tree/main/languages/python#readme)
* [Ruby](https://github.com/bitwarden/sdk-sm/tree/main/languages/ruby#readme)

该 SDK，以及基于它构建的 Secrets Manager CLI，可用于执行以下操作：

* 使用[访问令牌](https://help.ppgg.in/docs/secrets-manager/your-secrets/access-tokens)进行身份验证。
* 获取[工程](https://help.ppgg.in/docs/secrets-manager/your-secrets/projects)中的单个或所有[机密](https://help.ppgg.in/docs/secrets-manager/your-secrets/secrets)。
* 列出所有机密、工程中的机密、或工程。

{% hint style="success" %}
要了解 Python SDK 的实际应用，请加入 Secrets Manager 的现场演示和问答！[在此注册](https://us02web.zoom.us/webinar/register/WN_8kM9dK4FT6y0Z95G16nN5w#/registration)。
{% endhint %}
