TableSalt
Description
TableSalt is a safe, oxidized wrapper for libsodium.
Usage
To use tablesalt, add start by adding it as a dependency in your Cargo.toml file.
[]
= "0.3.1"
Hashing
Currently, TableSalt only provides libsodium's crypto_generichash API.
Hashing a message
The following example shows how to hash a simple message. The code here uses the crate
hex to encode the hash, which is a Vec<u8> into a hexadecimal string.
use sodium;
Hashing a multi-part message
use sodium;