Skip to main content

Crate wae_crypto

Crate wae_crypto 

Source
Expand description

WAE Crypto - 统一加密抽象模块

Re-exports§

pub use base64::base64_decode;
pub use base64::base64_encode;
pub use base64::base64url_decode;
pub use base64::base64url_encode;
pub use error::CryptoError;
pub use error::CryptoResult;
pub use hash::HashAlgorithm;
pub use hash::hash;
pub use hmac::HmacAlgorithm;
pub use hmac::hmac_sign;
pub use hmac::hmac_verify;
pub use password::PasswordAlgorithm;
pub use password::PasswordHasher;
pub use password::PasswordHasherConfig;
pub use totp::TotpAlgorithm;
pub use totp::TotpSecret;
pub use totp::generate_hotp;
pub use totp::generate_totp;
pub use totp::verify_hotp;
pub use totp::verify_totp;

Modules§

base64
Base64 编解码模块
error
加密错误类型
hash
哈希算法模块
hmac
HMAC 签名和验证模块
password
密码哈希和验证模块
totp
TOTP/HOTP 模块