Skip to main content

wae_crypto/
lib.rs

1#![warn(missing_docs)]
2//! WAE Crypto - 统一加密抽象模块
3
4pub mod base64;
5pub mod error;
6pub mod hash;
7pub mod hmac;
8pub mod password;
9pub mod totp;
10
11pub use base64::{base64_decode, base64_encode, base64url_decode, base64url_encode};
12pub use error::{CryptoError, CryptoResult};
13pub use hash::{HashAlgorithm, hash};
14pub use hmac::{HmacAlgorithm, hmac_sign, hmac_verify};
15pub use password::{PasswordAlgorithm, PasswordHasher, PasswordHasherConfig};
16pub use totp::{TotpAlgorithm, TotpSecret, generate_hotp, generate_totp, verify_hotp, verify_totp};