pub struct Base64ShaCrypt;
Expand description
crypt(3)
Base64 encoding for the following schemes.
- sha1_crypt,
- sha256_crypt,
- sha512_crypt,
- md5_crypt
[.-9] [A-Z] [a-z]
0x2e-0x39, 0x41-0x5a, 0x61-0x7a
Trait Implementations§
Source§impl Clone for Base64ShaCrypt
impl Clone for Base64ShaCrypt
Source§fn clone(&self) -> Base64ShaCrypt
fn clone(&self) -> Base64ShaCrypt
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Base64ShaCrypt
impl Debug for Base64ShaCrypt
Source§impl PartialEq for Base64ShaCrypt
impl PartialEq for Base64ShaCrypt
impl Copy for Base64ShaCrypt
impl Eq for Base64ShaCrypt
impl StructuralPartialEq for Base64ShaCrypt
Auto Trait Implementations§
impl Freeze for Base64ShaCrypt
impl RefUnwindSafe for Base64ShaCrypt
impl Send for Base64ShaCrypt
impl Sync for Base64ShaCrypt
impl Unpin for Base64ShaCrypt
impl UnwindSafe for Base64ShaCrypt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Encoding for Twhere
T: Alphabet,
impl<T> Encoding for Twhere
T: Alphabet,
Source§fn decode(src: impl AsRef<[u8]>, dst: &mut [u8]) -> Result<&[u8], Error>
fn decode(src: impl AsRef<[u8]>, dst: &mut [u8]) -> Result<&[u8], Error>
Decode a Base64 string into the provided destination buffer.
Source§fn decode_in_place(buf: &mut [u8]) -> Result<&[u8], InvalidEncodingError>
fn decode_in_place(buf: &mut [u8]) -> Result<&[u8], InvalidEncodingError>
Decode a Base64 string in-place. Read more
Source§fn decode_vec(input: &str) -> Result<Vec<u8>, Error>
fn decode_vec(input: &str) -> Result<Vec<u8>, Error>
Decode a Base64 string into a byte vector.
Source§fn encode<'a>(
src: &[u8],
dst: &'a mut [u8],
) -> Result<&'a str, InvalidLengthError>
fn encode<'a>( src: &[u8], dst: &'a mut [u8], ) -> Result<&'a str, InvalidLengthError>
Encode the input byte slice as Base64. Read more