• Stars
    star
    2
  • Language
    Ada
  • License
    Apache License 2.0
  • Created almost 7 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Ada Binding for the libsecret library

Ada Libsecret Library

Build Status Test Status Coverage

The libsecret is a library for storing and retrieving passwords and others secrets. The library uses the Secret Service API provided by Gnome Keyring or KDE Wallet. This library provides an Ada binding to the Secret Service API.

Pre-Requisites

On Ubuntu, you may have to install the following packages:

sudo apt-get install libsecret-1-dev libglib2.0-dev

Building

alr with secretada

The unit tests are built and executed with:

make test

And the samples are built using:

gprbuild -p -Psamples

Using the library

First, add a with clause for the secret GNAT project, in your GNAT project file add this line:

with "secretada";

You can store a secret by using the following code extract:

with Secret.Services;
with Secret.Attributes;
with Secret.Values;
...
   Service : Secret.Services.Service_Type;
   List    : Secret.Attributes.Map;
   Value   : Secret.Values.Secret_Type;
...
      Service.Initialize;
      List.Insert ("secret identification key", "secret identification value");
      Value := Secret.Values.Create ("the-secret-to-store");
      Service.Store (List, "The secret label (for the keyring manager)", Value);

And you will retrieve it with:

   Value := Service.Lookup (List);
   if not Value.Is_Null then
      Ada.Text_IO.Put_Line (Value.Get_Value);
   end if;

Running the samples

The samples provide a simple secret-tool program that allows to create, retrieve or delete a secret from the secret service API. You can add a secret using:

bin/secret-tool set my-secret

and retrieve it later with:

bin/secret-tool get

Documentation and References

More Repositories

1

ada-awa

Ada Web Application - Framework to build high performance secure web applications
Ada
90
star
2

ada-util

Ada Utility Library - Composing streams, processes, logs, serialization, encoders and more
Ada
68
star
3

ada-keystore

Ada Keystore - protect your sensitive data with secure storage
Ada
31
star
4

sql-benchmark

Tool to make SQL benchmark on different drivers, languages and databases
Ada
29
star
5

swagger-ada

Ada support for OpenAPI code generator
Ada
25
star
6

ada-ado

Ada Database Objects
Ada
24
star
7

ada-security

Ada Security - OAuth 2.0 client and server framework to secure web applications
Ada
22
star
8

ada-wiki

Ada Wiki Engine - Wiki parser and renderer with several Wiki syntaxes
Ada
19
star
9

ada-enet

Ada Embedded Network Stack
Ada
19
star
10

etherscope

Ethernet traffic monitor on a STM32F746 board
Ada
17
star
11

dynamo

Dynamo Ada Application Code Generator
Ada
17
star
12

ada-asf

Ada Server Faces - Web Server Faces JSR 252, JSR 314 and JSR 344
Ada
12
star
13

resource-embedder

ARE - Advanced Resource Embedder include files, scripts, images in Ada, C, Go binaries
Ada
10
star
14

ada-search

Ada
9
star
15

ada-bfd

Ada BFD is an Ada binding for the GNU Binutils BFD library. It allows to read binary ELF, COFF files by using the GNU BFD.
Ada
8
star
16

swagger-ada-todo

Simple todo list server with OpenAPI
Ada
8
star
17

ada-el

Ada EL - Expression Language Library (JSR245)
Ada
7
star
18

atlas

AWA Demonstrator
TSQL
7
star
19

ada-servlet

Ada Servlet - Web Servlet Library following JSR 154, JSR 315
Ada
7
star
20

ada-lzma

Ada binding for liblzma compression library
Ada
6
star
21

mat

Memory Analysis Tool
Ada
6
star
22

ada-css

Ada parser for CSS files with CSS Object Model API
Ada
5
star
23

ada-stemmer

Multi natural language stemmer with Snowball generator
Ada
4
star
24

stm32-ui

STM32 UI library and tools
Ada
4
star
25

ada-rest-api-server-benchmark

Benchmark for REST api on Ada servers
Ada
3
star
26

jason

Project and ticket management
Ada
3
star
27

wi2wic

Wiki 2 Wiki Converter
Ada
2
star
28

hestia

Heat Controller
Ada
2
star
29

ada-mail

Mail tools
Ada
2
star
30

bbox-ada-api

Ada Binding for the Bbox API
Ada
2
star
31

babel

Babel Backup
Ada
1
star
32

ada-awe

Automatically exported from code.google.com/p/ada-awe
Ada
1
star
33

helios

Helios Fast Reliable Monitoring Agent
Ada
1
star
34

awa-alire-index

1
star
35

xcra

Automatically exported from code.google.com/p/xcra
C++
1
star