Crates.io | cosmian_sse_memories |
lib.rs | cosmian_sse_memories |
version | 8.0.0 |
created_at | 2025-08-06 15:43:03.07733+00 |
updated_at | 2025-08-06 15:43:03.07733+00 |
description | Symmetric Searchable Encryption |
homepage | |
repository | https://github.com/Cosmian/findex/ |
max_upload_size | |
id | 1783933 |
size | 108,940 |
A collection of memory implementations for Findex, a concurrent and database-agnostic Searchable Encryption scheme. Findex memories provide compatibility with concrete databases, allowing the core Findex library to remain database-agnostic. This separation enables users to integrate Findex with their preferred database system.
First, add cosmian_sse_memories
as dependency to your project :
cargo add cosmian_sse_memories # do not forget to enable the adequate feature for the back end you want to use !
If you don't have a running Redis
or Postgres
instance running, you can use the docker-compose.yml
file provided with this repository by running docker-compose up
.
For detailed usage examples, refer to the examples folder.
This library provides implementations for the following storage systems:
Feature | Database | Dependencies |
---|---|---|
redis-mem |
Redis | redis v0.31 |
sqlite-mem |
SQLite | async-sqlite v0.5 |
postgres-mem |
PostgreSQL | tokio-postgres v0.7.9 tokio v1.44 deadpool-postgres v0.14.1 |
To execute the PostgreSQL tests and run the benches locally with your postgres installation, the easiest way would be to add the following service to your pg_service.conf file (usually under ~/.pg_service.conf
):
[cosmian_service]
host=localhost
dbname=cosmian
user=cosmian
password=cosmian