pub struct ImageDatKey { /* private fields */ }Implementations§
Source§impl ImageDatKey
impl ImageDatKey
pub fn new(aes: [u8; 16], xor: u8) -> Self
Sourcepub fn derive(uin: u32, username: &str) -> Result<Self>
pub fn derive(uin: u32, username: &str) -> Result<Self>
Inspected Linux V2 DAT format key. This public identity derivation is separate from database passwords and authenticated network credentials. The AES key uses sixteen lowercase-hex ASCII bytes, not decoded MD5.
Sourcepub fn from_legacy_cache(value: &str, xor: u8) -> Result<Self>
pub fn from_legacy_cache(value: &str, xor: u8) -> Result<Self>
Convert the older authorized cache representation: first 16 ASCII bytes of the 32-character cache string, not hex-decoding that string.
Trait Implementations§
Source§impl Clone for ImageDatKey
impl Clone for ImageDatKey
Auto Trait Implementations§
impl Freeze for ImageDatKey
impl RefUnwindSafe for ImageDatKey
impl Send for ImageDatKey
impl Sync for ImageDatKey
impl Unpin for ImageDatKey
impl UnsafeUnpin for ImageDatKey
impl UnwindSafe for ImageDatKey
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