Rust Fides

Fides is a library for hashing and symmetric/asymmetric cryptography written in Rust.

Features

Usage

In your Cargo.toml:

```

[dependencies] fides = "0.4.0"

```

API

Hashing ```

use fides::hash;

let h: [u8;32] = hash(&bytes);

```

Symmetric Encryption ```

use fides::symmetric::encrypt;

let cipher: Vec = encrypt(&key, &msg);

```

Symmetric Decryption ```

use fides::symmetric::decrypt;

let plain: Vec = decrypt(&key, &cipher);

```

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

Contribution

Pull requests, bug reports and any kind of suggestion are welcome.

2022-02-18