funsecret
Project description
funsecret
funsecret 是一个轻量级的 Python 密钥管理工具,用于安全地存储和访问敏感信息(如账号密码)。以下是它的主要功能和特点:
核心功能
- 本地密钥存储:将敏感信息保存在本地,避免在代码中使用明文凭证
- 结构化存储:使用多级路径(类似命名空间)组织密钥
- 读写 API:提供简洁的读写接口
- 快照功能:通过 funsecret_snapshot 扩展包支持某些平台的快照功能
安装
pip install funsecret
写入或者更新
from funsecret import read_secret, write_secret
write_secret("your username", "wechat", "login", "username")
read_secret("wechat", "login", "username", value="your username")
读取
from funsecret import read_secret
username = read_secret("wechat", "login", "username")
password = read_secret("wechat", "login", "password")
快照
快照功能需要单独安装
pip install funsecret_snapshot
目前只支持保存 lanzou
保存
from funsecret_snapshot import save_snapshot
bin_id = '**'
cipher_key = '******'
security_key = "******"
save_snapshot(bin_id, cipher_key, security_key)
读取
from funsecret_snapshot import load_snapshot
bin_id = '**'
cipher_key = '******'
security_key = "******"
load_snapshot(bin_id, cipher_key, security_key)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
funsecret-1.4.64.tar.gz
(7.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file funsecret-1.4.64.tar.gz.
File metadata
- Download URL: funsecret-1.4.64.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91c88dca28eda64da404287f174f6361f3034db0d1605b97e92eaaeb904f3c2b
|
|
| MD5 |
1e075b87468b7fe0f4d9d79b797b3e63
|
|
| BLAKE2b-256 |
6da45ffbb68a0b344973e2f5543e89a204442642eb847c4ef78b388e6eadfea3
|
File details
Details for the file funsecret-1.4.64-py3-none-any.whl.
File metadata
- Download URL: funsecret-1.4.64-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed01b7afb1edad6f406865faa6aefa5b4335d379268df04aa2b223e7115c1888
|
|
| MD5 |
543d97978f41a7f4480bd3746d2ae024
|
|
| BLAKE2b-256 |
8fe79e9514e0e376f05f7776419fcf9a039b5edc6a78f7b8744b14adb270f492
|