2022-06-11 10:50:31 +00:00
|
|
|
//! [![github]](https://github.com/MedzikUser/rust-crypto-utils)
|
2022-06-12 17:04:06 +00:00
|
|
|
//! [![crates-io]](https://crates.io/crates/crypto-utils)
|
|
|
|
//! [![docs-rs]](https://docs.rs/crypto-utils)
|
|
|
|
//! [![ci]](https://github.com/MedzikUser/rust-crypto-utils/actions/workflows/rust.yml)
|
2022-06-11 10:50:31 +00:00
|
|
|
//!
|
|
|
|
//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
|
|
|
|
//! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust
|
2022-06-11 11:15:27 +00:00
|
|
|
//! [docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs
|
2022-06-12 17:04:06 +00:00
|
|
|
//! [ci]: https://img.shields.io/github/workflow/status/MedzikUser/rust-crypto-utils/Rust/main?style=for-the-badge&logo=github
|
2022-06-11 10:50:31 +00:00
|
|
|
//!
|
2022-06-11 10:42:32 +00:00
|
|
|
//! Cryptography Utils for Rust
|
|
|
|
//!
|
|
|
|
//! ## Importing
|
2022-06-12 17:05:14 +00:00
|
|
|
//! The driver is available on [crates-io](https://crates.io/crates/crypto-utils). To use the driver in
|
2022-06-11 10:42:32 +00:00
|
|
|
//! your application, simply add it to your project's `Cargo.toml`.
|
|
|
|
//!
|
|
|
|
//! ```toml
|
|
|
|
//! [dependencies]
|
2022-06-29 13:21:55 +00:00
|
|
|
//! crypto-utils = "0.4.0"
|
2022-06-11 10:42:32 +00:00
|
|
|
//! ```
|
|
|
|
//!
|
|
|
|
//! ## How to use?
|
|
|
|
//!
|
2022-06-23 09:47:54 +00:00
|
|
|
//! Check [jsonwebtoken] and [sha] module
|
2022-06-12 18:55:45 +00:00
|
|
|
//!
|
|
|
|
//! ## All Feature flags
|
|
|
|
//!
|
2022-06-23 09:47:54 +00:00
|
|
|
//! | Feature | Description | Dependencies | Default |
|
|
|
|
//! |:---------|:------------------------------------------------------------|:----------------------------------------|:--------|
|
|
|
|
//! | `sha` | Enable support for the Sha1, Sha256 and Sha512 hasher | `sha` and `sha2` | yes |
|
|
|
|
//! | `jwt` | Enable support for the Json Web Token utils | `chrono`, `serde` and `jsonwebtoken` | yes |
|
2022-06-11 10:42:32 +00:00
|
|
|
|
2022-06-18 09:35:53 +00:00
|
|
|
#![warn(missing_docs)]
|
|
|
|
|
2022-06-11 14:59:20 +00:00
|
|
|
#[cfg(feature = "jwt")]
|
|
|
|
pub mod jsonwebtoken;
|
2022-06-11 10:42:32 +00:00
|
|
|
#[cfg(feature = "sha")]
|
|
|
|
pub mod sha;
|