<commit_before># Secret Service

Secret Service Rust library.

Interfaces with the Linux Secret Service API through dbus.

My understanding is that encryption is negotiated each new session, so an item that was encrypted/decrypted in one session, will be encrypted/decrypted with the new session parameters when a new connection is created.

(API was not entirely clear on this from my reading, my conclusion is drawn from the fact that when secret is returned, the session path is that of the current session, and not the one when the item was created).

Readme current for 2/6/2016.

## Installation

On ubuntu, requires libdbus-1-dev to compile.

I'll provide better notes on installation once finished and published

## Progress

### Completed

- SecretService: initialize dbus, create plain/encrypted session.
- Collections: create, delete, search.
- Items: create, delete, search, get/set secret.
- crypto
- error handling (return an SSError)

### Todo

- actual docs/example
- publishing

### Todo later

- use `map_err(|_| SsError::Parse)` for `inner()`? can't `try!` because `inner()` doesn't return an Error type in the Result. Or just `unwrap()`?
- some refactoring (a list is in lib.rs)
- clear failed tests? (there is no "after" currently)
- move tests to integration tests?
- Should/can struct instances be deleted when dbus object is deleted?

## License

Licensed under either of<commit_msg>Docs to readme<commit_after># Secret Service

Secret Service Rust library.

[docs](https://hwchen.github.io/secret-service-rs/secret-service/)

Interfaces with the Linux Secret Service API through dbus.

My understanding is that encryption is negotiated each new session, so an item that was encrypted/decrypted in one session, will be encrypted/decrypted with the new session parameters when a new connection is created.

(API was not entirely clear on this from my reading, my conclusion is drawn from the fact that when secret is returned, the session path is that of the current session, and not the one when the item was created).

Readme current for 2/6/2016.

## Installation

On ubuntu, requires libdbus-1-dev to compile.

I'll provide better notes on installation once finished and published

## Progress

### Completed

- SecretService: initialize dbus, create plain/encrypted session.
- Collections: create, delete, search.
- Items: create, delete, search, get/set secret.
- crypto
- error handling (return an SSError)

### Todo

- publishing

### Todo later

- use `map_err(|_| SsError::Parse)` for `inner()`? can't `try!` because `inner()` doesn't return an Error type in the Result. Or just `unwrap()`?
- some refactoring (a list is in lib.rs)
- clear failed tests? (there is no "after" currently)
- move tests to integration tests?
- Should/can struct instances be deleted when dbus object is deleted?

## License

Licensed under either of
{'fraction_non_alphanumeric': 0.0800419433764418, 'fraction_numerical': 0.004893393918210416, 'mean_word_length': 4.359550561797753, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4834365', 'n_tokens_mistral': 800, 'n_tokens_neox': 762, 'n_words': 390}