pub struct StringCipher { /* private fields */ }Expand description
字符串密码器 - 对字符集密码器的便捷封装
提供友好的字符串加密/解密接口
Implementations§
Source§impl StringCipher
impl StringCipher
Sourcepub fn uppercase_alpha() -> Self
pub fn uppercase_alpha() -> Self
预定义:大写英文字母 (A-Z)
Sourcepub fn lowercase_alpha() -> Self
pub fn lowercase_alpha() -> Self
预定义:小写英文字母 (a-z)
Sourcepub fn mixed_alpha() -> Self
pub fn mixed_alpha() -> Self
预定义:大小写英文字母
Sourcepub fn alphanumeric() -> Self
pub fn alphanumeric() -> Self
预定义:字母和数字
Sourcepub fn printable_ascii() -> Self
pub fn printable_ascii() -> Self
预定义:可打印ASCII字符
Sourcepub fn charset_info(&self) -> String
pub fn charset_info(&self) -> String
获取字符集信息
Auto Trait Implementations§
impl Freeze for StringCipher
impl RefUnwindSafe for StringCipher
impl Send for StringCipher
impl Sync for StringCipher
impl Unpin for StringCipher
impl UnsafeUnpin for StringCipher
impl UnwindSafe for StringCipher
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