simplestcrypt
Simplest way to perform a symmetric encryption, using a preshared key. Very small wrapper around aes-siv crate, with randomly generated nonces, for anything more advanced, use aes-siv instead
Example
use str;
Serialization notes
Bincode adds 8 bytes in between the serialized nonce and the serialized ciphertext so it looks like:
| Bytes | Description |
|---|---|
| 0 - 15 | Nonce used when encrypting the ciphertext |
| 16 - 23 | The lenght of the cyphertext |
| 24 - .. | Cyphertext |
This needs to be taken into account when interoperating with other libraries