pub struct SecureRandom;Expand description
Secure random generator for security operations
Implementations§
Source§impl SecureRandom
impl SecureRandom
Sourcepub fn base64_string(byte_length: usize) -> String
pub fn base64_string(byte_length: usize) -> String
Generate base64-encoded random string
Sourcepub fn base64_url_string(byte_length: usize) -> String
pub fn base64_url_string(byte_length: usize) -> String
Generate URL-safe base64-encoded random string
Auto Trait Implementations§
impl Freeze for SecureRandom
impl RefUnwindSafe for SecureRandom
impl Send for SecureRandom
impl Sync for SecureRandom
impl Unpin for SecureRandom
impl UnwindSafe for SecureRandom
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