{"id":13410110,"url":"https://github.com/stcarrez/ada-libsecret","last_synced_at":"2026-03-19T15:33:04.444Z","repository":{"id":88796666,"uuid":"95248252","full_name":"stcarrez/ada-libsecret","owner":"stcarrez","description":"Ada Binding for the libsecret library","archived":false,"fork":false,"pushed_at":"2024-02-17T07:56:39.000Z","size":127,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-14T13:50:36.877Z","etag":null,"topics":["binding","keyring","kwallet","libsecret"],"latest_commit_sha":null,"homepage":null,"language":"Ada","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/stcarrez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2017-06-23T19:00:14.000Z","updated_at":"2024-02-11T10:57:03.000Z","dependencies_parsed_at":"2024-02-17T08:43:02.830Z","dependency_job_id":null,"html_url":"https://github.com/stcarrez/ada-libsecret","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stcarrez/ada-libsecret","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stcarrez%2Fada-libsecret","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stcarrez%2Fada-libsecret/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stcarrez%2Fada-libsecret/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stcarrez%2Fada-libsecret/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stcarrez","download_url":"https://codeload.github.com/stcarrez/ada-libsecret/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stcarrez%2Fada-libsecret/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30711094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-19T05:29:31.190Z","status":"ssl_error","status_checked_at":"2026-03-19T05:28:25.821Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["binding","keyring","kwallet","libsecret"],"created_at":"2024-07-30T20:01:05.024Z","updated_at":"2026-03-19T15:33:04.428Z","avatar_url":"https://github.com/stcarrez.png","language":"Ada","funding_links":[],"categories":["Libraries"],"sub_categories":["Cryptography"],"readme":"# Ada Libsecret Library\n\n[![Build Status](https://img.shields.io/endpoint?url=https://porion.vacs.fr/porion/api/v1/projects/ada-libsecret/badges/build.json)](https://porion.vacs.fr/porion/projects/view/ada-libsecret/summary)\n[![Test Status](https://img.shields.io/endpoint?url=https://porion.vacs.fr/porion/api/v1/projects/ada-libsecret/badges/tests.json)](https://porion.vacs.fr/porion/projects/view/ada-libsecret/xunits)\n[![Coverage](https://img.shields.io/endpoint?url=https://porion.vacs.fr/porion/api/v1/projects/ada-libsecret/badges/coverage.json)](https://porion.vacs.fr/porion/projects/view/ada-libsecret/summary)\n\nThe [libsecret](https://wiki.gnome.org/Projects/Libsecret) is a library for storing\nand retrieving passwords and others secrets.  The library uses the\n[Secret Service API](https://standards.freedesktop.org/secret-service/) provided\nby Gnome Keyring or KDE Wallet.  This library provides an Ada binding\nto the [Secret Service API](https://standards.freedesktop.org/secret-service/).\n\n# Pre-Requisites\n\nOn Ubuntu, you may have to install the following packages:\n\n```\nsudo apt-get install libsecret-1-dev libglib2.0-dev\n```\n\n# Building\n\n```\nalr with secretada\n```\n\nThe unit tests are built and executed with:\n```\nmake test\n```\n\nAnd the samples are built using:\n\n```\ngprbuild -p -Psamples\n```\n\n# Using the library\n\nFirst, add a with clause for the *secret* GNAT project, in your GNAT project file add this line:\n\n```\nwith \"secretada\";\n```\n\nYou can store a secret by using the following code extract:\n\n```\nwith Secret.Services;\nwith Secret.Attributes;\nwith Secret.Values;\n...\n   Service : Secret.Services.Service_Type;\n   List    : Secret.Attributes.Map;\n   Value   : Secret.Values.Secret_Type;\n...\n      Service.Initialize;\n      List.Insert (\"secret identification key\", \"secret identification value\");\n      Value := Secret.Values.Create (\"the-secret-to-store\");\n      Service.Store (List, \"The secret label (for the keyring manager)\", Value);\n```\n\nAnd you will retrieve it with:\n\n```\n   Value := Service.Lookup (List);\n   if not Value.Is_Null then\n      Ada.Text_IO.Put_Line (Value.Get_Value);\n   end if;\n```\n\n# Running the samples\n\nThe samples provide a simple *secret-tool* program that allows to create,\nretrieve or delete a secret from the secret service API.\nYou can add a secret using:\n\n```\nbin/secret-tool set my-secret\n```\n\nand retrieve it later with:\n\n```\nbin/secret-tool get\n```\n\n# Documentation and References\n\n* [Secret Service API](https://specifications.freedesktop.org/secret-service/index.html)\n* [Libsecret Library Reference Manual](https://gnome.pages.gitlab.gnome.org/libsecret/)\n* [Ada wrapper for Secret Service](https://github.com/stcarrez/ada-libsecret/wiki/Secret)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstcarrez%2Fada-libsecret","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstcarrez%2Fada-libsecret","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstcarrez%2Fada-libsecret/lists"}