This is a small script based on Rust, for comparing and encrypting Strings with bcrypt with a custom CLI tool. It's designed for optimizing time on development and testing out of code blocks on the app.
Flag | Behaviour |
---|---|
encrypt | expects a string and a salt number to encrypt the string. |
compare | expects a string and a hash nto verify its integrity. |
-
Clone this repository.
-
Exectue
cargo build --release
this will generate/target/bcrypt_cli
directory. -
Simply execute
./target/release/bcrypt_cli
on the specified directory to run the script. You can add it by alias on your shell to make it accesible.`