KeystoreDB 1.6.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package KeystoreDB --version 1.6.4                
NuGet\Install-Package KeystoreDB -Version 1.6.4                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KeystoreDB" Version="1.6.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KeystoreDB --version 1.6.4                
#r "nuget: KeystoreDB, 1.6.4"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install KeystoreDB as a Cake Addin
#addin nuget:?package=KeystoreDB&version=1.6.4

// Install KeystoreDB as a Cake Tool
#tool nuget:?package=KeystoreDB&version=1.6.4                

KeystoreDB

KeystoreDB is a lightweight, secure NoSQL persistent database engine implemented in C#. It provides a simple key-value store with encryption support using AES-CBC with PKCS7 padding.

Features

  • Simple key-value store
  • AES encryption
  • Persistent storage
  • Thread safe
  • Clean Architecture design

Project Structure

The project is organized using Clean Architecture principles:

  • KeystoreDB.Core: Contains the core business logic and interfaces
  • KeystoreDB: Main project which implements the interfaces defined in the Core project
  • KeystoreDB.Core.Tests: Contains unit tests for the Core project
  • KeystoreDB.Tests: Contains unit tests for the Main project

Getting Started

  1. Clone the repository
  2. Open the solution in Visual Studio or your preferred IDE
  3. Build the solution
  4. Run the tests to ensure everything is working correctly

Usage

Here's a basic example of how to use KeystoreDB:

var dbPath = "path/to/database";
var password = "your_secure_password";

var encryptionService = new EncryptionService();
var fileService = new FileService();
var logger = new ConsoleLogger(); // Add this line
var databaseService = new DatabaseService(dbPath, password, encryptionService, fileService, logger);

// Set a value
databaseService.Set("myKey", "myValue");
logger.Log("Value set for myKey");

// Get a value
string value = databaseService.Get("myKey");
logger.Log($"Retrieved value for myKey: {value}");

// Delete a value
bool deleted = databaseService.Delete("myKey");
logger.Log($"Deleted myKey: {deleted}");

// Save changes
databaseService.Save();
logger.Log("Database changes saved");

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.6.9 91 12/5/2024
1.6.8 85 12/5/2024
1.6.7 89 12/5/2024
1.6.6 88 12/4/2024
1.6.5 86 12/4/2024
1.6.4 96 12/4/2024
1.6.3 95 12/4/2024
1.6.2 93 12/4/2024
1.6.1 86 12/4/2024
1.6.0 79 12/4/2024
1.5.0 90 12/4/2024