Crate rust_keylock [] [src]

The rust-keylock library

Executes the logic of the rust-keylock.

This library is the executor of the rust-keylock logic. Editor references are used to interact with the rust-keylock users.

Modules

datacrypt

Defines the Cryptor trait and implements the encryption and decryption for the rust-keylock

nextcloud

Structs

Entry

Struct that defines a password entry.

Props

A struct that allows storing general configuration values. The configuration values are stored in plaintext.

RklConfiguration

Keeps the Configuration

RklContent

Struct to use for retrieving and saving data from/to the file

Safe

Holds the data that should be safe and secret.

SystemConfiguration

System - internal configuration

UserOption

Enums

Menu

Enumeration of the several different Menus that an Editor implementation should handle.

MessageSeverity

Severity for the messages presented to the Users

UserOptionType

Represents a type for a UserOption

UserSelection

Represents a User selection that is returned after showing a Menu.

Traits

Editor

Trait to be implemented by various different Editors (Shell, Web, Android, other...).

Functions

execute

Takes a reference of Editor implementation as argument and executes the rust-keylock logic. The Editor is responsible for the interaction with the user. Currently there are Editor implementations for shell and for Android.