Crate jarida[][src]

Structs

Config
CredentialGuard

A type used to verify the username and password used to secure the database.

DataGuard

A type used to encrypt/decrypt the contents of a database. It can only be created from a CredentialGuard who’s username and password have been verified.

GuardedStore

A database of journal entries protected by the encryption facilities of a DataGuard. This is the only way to read/write entries from/to the database.

Ided

A record that has an ID

Metadata

A record containing journal entry metadata

MetadataAndContent

A record containing the journal entry’s metadata and content

Nonce

A source of Nonces (numbers that you only use once).

Store

A store of journal entries

UnspecifiedError

An intentionally ambiguous error

Uuid

A universal identifer

Enums

Args
Format

The formats for printing out entries

Statics

SYSTEM_RNG

Traits

Open

A type that can be decrypted

Seal

A type that can be encrypted

Functions

edit_entry

Edit the content of the specified entry.

generate_db_salt

Generate a random value that can be used when salting for encryption. The value should be associated with the database and be constant. It does not need to be a secret, though it should be unique to the database.

get_and_validate_credentials

Prompt the user for their credentials, as needed, in order to work with an encrypted database.

init

Try to initialize the specified directory. If dir is None, the user’s home directory is assumed. If config directory already exists, an error is returned.

new_entry
open_file_in_editor
print_all_entries

Print the metadata and content of every entry in the database.

print_entry

Print the metadata and contents of the specified entry.

print_entry_list

List identifying metadata for every entry in the database.

Type Definitions

DbSalt

The database portion of a salt used for deriving keys from username and passwords.

Key

The encryption key type