Fides is a library for hashing and symmetric/asymmetric cryptography written in Rust.
In your Cargo.toml
:
```
[dependencies] fides = "0.4.0"
```
Hashing
```
use fides::hash;
let h: [u8;32] = hash(&bytes);
```
Symmetric Encryption
```
use fides::symmetric::encrypt;
let cipher: Vec
```
Symmetric Decryption
```
use fides::symmetric::decrypt;
let plain: Vec
```
Asymmetric Private Key Generation
```
use fides::asymmetric::private_key;
let privkey: [u8;32] = privatekey();
```
Asymmetric Public Key Generation
```
use fides::asymmetric::public_key;
let pubkey: [u8;32] = publickey(&priv_key);
```
Asymmetric Shared Key Generation
```
use fides::asymmetric::shared_key;
let shkey: [u8;32] = sharedkey(&privkey, &pubkey);
```
Asymmetric Message Signing
Asymmetric Message Verification
Pull requests, bug reports and any kind of suggestion are welcome.
2022-02-18