2024-02-14 18:16:45 +01:00
|
|
|
|
|
|
|
[//]: # (Copyright 2019-2020 Rodolphe Bréard <rodolphe@breard.tf>)
|
|
|
|
|
|
|
|
[//]: # (Copying and distribution of this file, with or without modification,)
|
|
|
|
[//]: # (are permitted in any medium without royalty provided the copyright)
|
|
|
|
[//]: # (notice and this notice are preserved. This file is offered as-is,)
|
|
|
|
[//]: # (without any warranty.)
|
|
|
|
|
|
|
|
|
|
|
|
# Coffio
|
|
|
|
|
2024-06-24 19:10:10 +02:00
|
|
|
[![Build Status](https://github.com/breard-r/coffio/actions/workflows/ci.yml/badge.svg)](https://github.com/breard-r/coffio/actions/workflows/ci.yml)
|
|
|
|
[![Coffio on crates.io](https://img.shields.io/crates/v/coffio.svg)](https://crates.io/crates/coffio)
|
|
|
|
[![Coffio on docs.rs](https://docs.rs/coffio/badge.svg)](https://docs.rs/coffio/)
|
2024-02-14 18:16:45 +01:00
|
|
|
![License MIT OR Apache 2.0](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue)
|
|
|
|
|
2024-04-20 18:26:21 +02:00
|
|
|
Abstraction layer for symmetric data encryption, primarily designed for
|
|
|
|
database column encryption.
|
2024-02-14 18:16:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Disclaimer
|
|
|
|
|
|
|
|
:warning: DANGER: DRAGONS A(H)EAD! :dragon_face:
|
|
|
|
|
2024-04-20 18:26:21 +02:00
|
|
|
This crate is experimental and has never been audited by an independent
|
|
|
|
security professional. You should therefore NOT use it in production.
|
2024-02-14 18:16:45 +01:00
|
|
|
|
2024-04-20 18:26:21 +02:00
|
|
|
Although this crate aim to reduce the risk of misuse, it is still possible to
|
|
|
|
use it in such a way that the cryptography it uses does not provides all the
|
|
|
|
security guaranties you need. Ask your cryptographer if this crate is relevant
|
|
|
|
to your use case and if you are using it correctly.
|
2024-02-14 18:16:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Frequently Asked Questions
|
|
|
|
|
2024-02-14 23:11:26 +01:00
|
|
|
## Should I use this crate?
|
2024-02-14 18:16:45 +01:00
|
|
|
|
2024-06-24 19:23:44 +02:00
|
|
|
If you have a use case covered by this crate AND you do not care about using an
|
|
|
|
experimental crate, then you may use it.
|
2024-02-14 18:16:45 +01:00
|
|
|
|
2024-02-14 23:11:26 +01:00
|
|
|
## Why should I use this crate instead of a symmetric encryption function?
|
2024-02-14 18:16:45 +01:00
|
|
|
|
2024-04-20 18:26:21 +02:00
|
|
|
1. Strong algorithms only. If you don't know which one to chose, Coffio
|
|
|
|
provides strong defaults.
|
|
|
|
2. Key management is hard. Coffio largely simplifies it in a way that becomes
|
|
|
|
largely accessible.
|
2024-02-14 23:11:26 +01:00
|
|
|
|
|
|
|
## Why has this crate not been audited by a security professional?
|
|
|
|
|
2024-04-20 18:26:21 +02:00
|
|
|
Such an audit cost a lot of money. If you really care about this crate being
|
|
|
|
audited, you may help financing it.
|
2024-02-14 18:16:45 +01:00
|
|
|
|
|
|
|
## Where does the name coffio comes from?
|
|
|
|
|
2024-04-20 18:26:21 +02:00
|
|
|
It is a french slang for a safe or a strongbox. See
|
|
|
|
[coffio](https://fr.wiktionary.org/wiki/coffio) on the french Wiktionary.
|