{"id":18925896,"url":"https://github.com/farfarfun/funsecret","last_synced_at":"2026-03-05T16:03:14.077Z","repository":{"id":40655184,"uuid":"503981964","full_name":"farfarfun/funsecret","owner":"farfarfun","description":"加密和安全工具包 - 提供加密、解密和安全相关功能","archived":false,"fork":false,"pushed_at":"2026-02-24T07:34:59.000Z","size":323,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-24T13:46:29.136Z","etag":null,"topics":["cryptography","encryption","farfarfun","python","secret","security"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/funsecret/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farfarfun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-16T02:11:59.000Z","updated_at":"2026-02-24T07:35:01.000Z","dependencies_parsed_at":"2024-12-13T03:26:19.422Z","dependency_job_id":"72e949de-212b-4ece-a844-a9adb684e019","html_url":"https://github.com/farfarfun/funsecret","commit_stats":null,"previous_names":["farfarfun/funsecret"],"tags_count":157,"template":false,"template_full_name":null,"purl":"pkg:github/farfarfun/funsecret","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farfarfun%2Ffunsecret","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farfarfun%2Ffunsecret/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farfarfun%2Ffunsecret/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farfarfun%2Ffunsecret/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farfarfun","download_url":"https://codeload.github.com/farfarfun/funsecret/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farfarfun%2Ffunsecret/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30134575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T15:35:27.018Z","status":"ssl_error","status_checked_at":"2026-03-05T15:35:23.768Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cryptography","encryption","farfarfun","python","secret","security"],"created_at":"2024-11-08T11:13:48.483Z","updated_at":"2026-03-05T16:03:14.042Z","avatar_url":"https://github.com/farfarfun.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# funsecret\n\nfunsecret 是一个轻量级的 Python 密钥管理工具，用于安全地存储和访问敏感信息（如账号密码）。以下是它的主要功能和特点：\n\n核心功能\n* 本地密钥存储：将敏感信息保存在本地，避免在代码中使用明文凭证\n* 结构化存储：使用多级路径（类似命名空间）组织密钥\n* 读写 API：提供简洁的读写接口\n* 快照功能：通过 funsecret_snapshot 扩展包支持某些平台的快照功能\n\n\n## 安装\n\n```bash\npip install funsecret\n```\n\n## 写入或者更新\n\n```python\nfrom funsecret import read_secret, write_secret\n\nwrite_secret(\"your username\", \"wechat\", \"login\", \"username\")\nread_secret(\"wechat\", \"login\", \"username\", value=\"your username\")\n```\n\n## 读取\n\n```python\nfrom funsecret import read_secret\n\nusername = read_secret(\"wechat\", \"login\", \"username\")\npassword = read_secret(\"wechat\", \"login\", \"password\")\n```\n\n## 快照\n\n快照功能需要单独安装\n\n```bash\npip install funsecret_snapshot\n```\n\n目前只支持保存 lanzou\n\n### 保存\n\n```python\nfrom funsecret_snapshot import save_snapshot\n\nbin_id = '**'\ncipher_key = '******'\nsecurity_key = \"******\"\nsave_snapshot(bin_id, cipher_key, security_key)\n```\n\n### 读取\n\n```python\nfrom funsecret_snapshot import load_snapshot\n\nbin_id = '**'\ncipher_key = '******'\nsecurity_key = \"******\"\nload_snapshot(bin_id, cipher_key, security_key)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarfarfun%2Ffunsecret","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarfarfun%2Ffunsecret","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarfarfun%2Ffunsecret/lists"}