pub struct PasswordUtils;
Expand description
密码工具
Implementations§
Source§impl PasswordUtils
impl PasswordUtils
Sourcepub fn hash_password(password: &str) -> Result<String>
pub fn hash_password(password: &str) -> Result<String>
生成密码哈希
Sourcepub fn generate_password(length: usize) -> String
pub fn generate_password(length: usize) -> String
生成随机密码
Auto Trait Implementations§
impl Freeze for PasswordUtils
impl RefUnwindSafe for PasswordUtils
impl Send for PasswordUtils
impl Sync for PasswordUtils
impl Unpin for PasswordUtils
impl UnwindSafe for PasswordUtils
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more