fire-postgres 0.2.0

A async postgres driver focused on ease of use
Documentation
1
2
3
4
5
6
7
8
9
use crate::Result;

pub fn hash<P: AsRef<[u8]>>(password: P) -> Result<String> {
	Ok(bcrypt::hash(password, 12)?)
}

pub fn verify<P: AsRef<[u8]>>(password: P, hash: &str) -> Result<bool> {
	Ok(bcrypt::verify(password, hash)?)
}