rscrypt-0.1.5 has been yanked.
🔑 rscrypt
rscrypt is a simple, fast, and secure encryption tool written in Rust.
Usage
Add rscrypt to your Cargo.toml:
[]
= "*"
or install via cargo
Features
rscrypt contains simple functions for encrypting and decrypting data.
gen_salt: Generates a random salt.get_salt: Extracts the salt from the hashed string.hash: Hashes a string with a salt.encode: Encodes a string to base64.decode: Decodes a base64 string.compare: compare a string to a hashed string.
Example
use ;