C# Class Rainy.Db.DbEncryptedStorage

Inheritance: DbStorage
Mostra file Open project: Dynalon/Rainy Class Usage Examples

Private Properties

Property Type Description
DecryptNoteBody void
EncryptNoteBody void
GetEncryptedNoteKey string

Public Methods

Method Description
DbEncryptedStorage ( IDbConnectionFactory factory, DBUser user, string encryption_master_key, bool use_history = true ) : System
GetNotes ( ) : Note>.Dictionary
ReEncryptAllNotes ( string new_encryption_key ) : void

Reencrypts all notes. This may happen i.e. if the user changes his password.

SaveNote ( Note note ) : void

Private Methods

Method Description
DecryptNoteBody ( DBNote note ) : void
EncryptNoteBody ( DBNote note ) : void
GetEncryptedNoteKey ( DBNote note ) : string

Method Details

DbEncryptedStorage() public method

public DbEncryptedStorage ( IDbConnectionFactory factory, DBUser user, string encryption_master_key, bool use_history = true ) : System
factory IDbConnectionFactory
user DBUser
encryption_master_key string
use_history bool
return System

GetNotes() public method

public GetNotes ( ) : Note>.Dictionary
return Note>.Dictionary

ReEncryptAllNotes() public method

Reencrypts all notes. This may happen i.e. if the user changes his password.
public ReEncryptAllNotes ( string new_encryption_key ) : void
new_encryption_key string The new key that is used for encryption.
return void

SaveNote() public method

public SaveNote ( Note note ) : void
note Tomboy.Note
return void