pub struct Base64Crypt;๐Deprecated since 1.8.2: non-standard encoding. Use Base64ShaCrypt for all crypt(3) algorithms
Expand description
DEPRECATED: non-standard big endian variant of the crypt(3) Base64 encoding.
[.-9] [A-Z] [a-z]
0x2e-0x39, 0x41-0x5a, 0x61-0x7a
This encodes using a big endian variant of Base64. Most modern algorithms which can be
used via `crypt(3)` use the [`Base64ShaCrypt`][`crate::Base64ShaCrypt`] encoding.
Trait Implementationsยง
Sourceยงimpl Clone for Base64Crypt
impl Clone for Base64Crypt
Sourceยงfn clone(&self) -> Base64Crypt
fn clone(&self) -> Base64Crypt
Returns a duplicate 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 Base64Crypt
impl Debug for Base64Crypt
Sourceยงimpl Default for Base64Crypt
impl Default for Base64Crypt
Sourceยงfn default() -> Base64Crypt
fn default() -> Base64Crypt
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl Hash for Base64Crypt
impl Hash for Base64Crypt
Sourceยงimpl Ord for Base64Crypt
impl Ord for Base64Crypt
Sourceยงfn cmp(&self, other: &Base64Crypt) -> Ordering
fn cmp(&self, other: &Base64Crypt) -> Ordering
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Sourceยงimpl PartialEq for Base64Crypt
impl PartialEq for Base64Crypt
Sourceยงimpl PartialOrd for Base64Crypt
impl PartialOrd for Base64Crypt
impl Copy for Base64Crypt
impl Eq for Base64Crypt
impl StructuralPartialEq for Base64Crypt
Auto Trait Implementationsยง
impl Freeze for Base64Crypt
impl RefUnwindSafe for Base64Crypt
impl Send for Base64Crypt
impl Sync for Base64Crypt
impl Unpin for Base64Crypt
impl UnwindSafe for Base64Crypt
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