{"id":12133,"date":"2025-04-04T22:03:02","date_gmt":"2025-04-04T13:03:02","guid":{"rendered":"https:\/\/www.webcyou.com\/?p=12133"},"modified":"2025-04-04T22:03:02","modified_gmt":"2025-04-04T13:03:02","slug":"keyring-rs%e3%81%a7%e3%80%81mac%e3%81%ae%e3%82%ad%e3%83%bc%e3%83%81%e3%82%a7%e3%83%bc%e3%83%b3%e3%81%ab%e7%99%bb%e9%8c%b2%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=12133","title":{"rendered":"keyring-rs\u3067\u3001Mac\u306e\u30ad\u30fc\u30c1\u30a7\u30fc\u30f3\u306b\u767b\u9332\u3059\u308b\u3002"},"content":{"rendered":"\n<p>\u3069\u3082\u3067\u3059\u3002<\/p>\n<p>Switch2\u304c\u767a\u8868\u3055\u308c\u3001\u62bd\u9078\u7533\u3057\u8fbc\u307f\u304c\u958b\u59cb\u3055\u308c\u307e\u3057\u305f\u304c\u3001\u30a2\u30af\u30bb\u30b9\u96c6\u4e2d\u3067\u5168\u7136\u3060\u3081\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u6700\u8fd1 \u793e\u5185\u306eGUI\u30c4\u30fc\u30eb\u3092Tauri\u3067\u958b\u767a\u3057\u3066\u304a\u308a\u3001GitHub\u9023\u643a\u3084\u4f55\u3084\u3089\u3092\u884c\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u969b\u306bGitHub\u306e\u30d1\u30fc\u30bd\u30ca\u30eb\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u3069\u3053\u306b\u4fdd\u5b58\u3057\u3088\u3046\u304b\u306a\u3068\u8a00\u3046\u3068\u3053\u308d\u3067\u3001\u300c\u30ad\u30fc\u30c1\u30a7\u30fc\u30f3\u300d\u306b\u767b\u9332\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u306e\u3067\u3001Rust\u306e\u30af\u30ec\u30fc\u30c8\u3067\u3042\u308b <a class=\"d-block overflow-x-hidden color-fg-default\" href=\"https:\/\/github.com\/open-source-cooperative\/keyring-rs\" data-pjax=\"#repo-content-pjax-container\" data-turbo-frame=\"repo-content-turbo-frame\">keyring-rs<\/a> \u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u4f55\u5ea6\u884c\u3063\u3066\u3082\u4e0a\u624b\u304f\u3044\u304b\u305a\u3002<\/p>\n<p>\u7279\u306b\u30a8\u30e9\u30fc\u3082\u5410\u304b\u305a\u3001Result\u3082OK\u306b\u306a\u308a\u3001\u300c?\u300d\u3068\u6570\u6642\u9593\u3082\u30cf\u30de\u3063\u3066\u3057\u307e\u3063\u305f\u3002\u3002<\/p>\n<p><strong>crates<\/strong><\/p>\n<p><a href=\"https:\/\/crates.io\/crates\/keyring\" target=\"_blank\" rel=\"noopener\">https:\/\/crates.io\/crates\/keyring<\/a><\/p>\n<p><strong>github<\/strong><\/p>\n<p><a href=\"https:\/\/github.com\/open-source-cooperative\/keyring-rs\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/open-source-cooperative\/keyring-rs<\/a><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cargo add keyring<\/pre>\n<p>Cargo.toml<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">keyring = \"3.6.2\"<\/pre>\n<p>\u00a0<\/p>\n<p><strong>\u30ad\u30fc\u30c1\u30a7\u30fc\u30f3\u306b\u8ffd\u52a0\u3059\u308b\u6700\u5c0f\u30b5\u30f3\u30d7\u30eb<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">use keyring::{Entry, Result};\n\nfn main() -&gt; Result&lt;()&gt; {\n    let entry = Entry::new(\"my-service\", \"my-name\")?;\n    entry.set_password(\"topS3cr3tP4$$w0rd\")?;\n    let password = entry.get_password()?;\n    println!(\"My password is '{}'\", password);\n    \/\/ delete\u51e6\u7406\u306f\u4e00\u65e6\u975e\u8868\u793a\n    \/\/ entry.delete_credential()?;\n    Ok(())\n}<\/pre>\n<p>cargo run\u3067\u5b9f\u884c\u3002<\/p>\n<p>\u4f55\u5ea6\u5b9f\u884c\u3057\u3066\u3082\u3001\u30ad\u30fc\u30c1\u30a7\u30fc\u30f3\u306e\u691c\u7d22\u7a93\u8abf\u3079\u3066\u3082\u3002\u3002\u767b\u9332\u3055\u308c\u306a\u3044\u3002<\/p>\n<p>\u3068\u3001\u3075\u3068stackoverflow\u898b\u308b\u3068\u3002\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">keyring = { version = \"3\", features = [\"apple-native\", \"windows-native\"] }<\/pre>\n<p>\u3068\u8a18\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<p>\u8a66\u3057\u3066\u307f\u308b\u3068\u3001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12134\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2025\/04\/156191b047ff8b8712d7c2370380223d.png\" alt=\"\" width=\"210\" height=\"78\" \/><\/p>\n<p>\u8ffd\u52a0\u3055\u308c\u305f\u30fc\uff01\uff01\u82e6\u3057\u304b\u3063\u305f\u3041\u301c \uff1e\uff1c<\/p>\n<p>\u306a\u3093\u3060\u3088\u3001feature\u30d5\u30e9\u30b0\u304c\u5fc5\u8981\u3060\u3063\u305f\u306e\u304b\u3088\u30fc\u30fc<\/p>\n<p>keyring-rs\u306b\u95a2\u3057\u3066\u306f\u3001\u6b86\u3069\u65e5\u672c\u8a9e\u306e\u8a18\u4e8b\u306a\u3069\u306a\u304f\u5c11\u3005\u8a70\u307f\u304b\u3051\u3066\u3044\u307e\u3057\u305f\u3002\u3002<\/p>\n<p>\u4f55\u306f\u3068\u3082\u3042\u308c\u826f\u304b\u3063\u305f\u3002\u3002<\/p>\n<p>\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u3067\u3082OSS\u306b\u3066Tauri\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3057\u3066\u3044\u3053\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u3041\u3002<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3082\u3067\u3059\u3002 Switch2\u304c\u767a\u8868\u3055\u308c\u3001\u62bd\u9078\u7533\u3057\u8fbc\u307f\u304c\u958b\u59cb\u3055\u308c\u307e\u3057\u305f\u304c\u3001\u30a2\u30af\u30bb\u30b9\u96c6\u4e2d\u3067\u5168\u7136\u3060\u3081\u3067\u3059\u3002 \u3068\u3044\u3046\u308f\u3051\u3067\u3001\u6700\u8fd1 \u793e\u5185\u306eGUI\u30c4\u30fc\u30eb\u3092Tauri\u3067\u958b\u767a\u3057\u3066\u304a\u308a\u3001GitHub\u9023\u643a\u3084\u4f55\u3084\u3089\u3092\u884c\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u969b\u306b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":11849,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[299],"tags":[360,359,358,169,327,361,78],"class_list":["post-12133","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rust","tag-apple","tag-keyring","tag-keyring-rs","tag-mac","tag-rust","tag-361","tag-78"],"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/12133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12133"}],"version-history":[{"count":1,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/12133\/revisions"}],"predecessor-version":[{"id":12135,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/12133\/revisions\/12135"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/media\/11849"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}