pub struct LegacyAuthAdapter;Implementations§
Source§impl LegacyAuthAdapter
impl LegacyAuthAdapter
Sourcepub fn detect_dialect(stored_hash: &str) -> PasswordHashDialect
pub fn detect_dialect(stored_hash: &str) -> PasswordHashDialect
Mendeteksi jenis algoritma hash dari format string yang tersimpan di database
Sourcepub fn compute_pepper(sandi_an: &str, app_key: &str) -> String
pub fn compute_pepper(sandi_an: &str, app_key: &str) -> String
Menghitung fixed HMAC-SHA256 pepper (Layer 1) dari string Sandi A-N (Layer 0)
Sourcepub fn verify_and_check_migration(
raw_password: &str,
stored_hash: &str,
app_key: Option<&str>,
) -> (bool, bool)
pub fn verify_and_check_migration( raw_password: &str, stored_hash: &str, app_key: Option<&str>, ) -> (bool, bool)
Verifikasi kata sandi dengan dukungan multi-bahasa / sistem lama:
Mengembalikan tuple: (is_valid, needs_rehash)
is_valid: Apakah kata sandi cocok.needs_rehash: True jika kata sandi cocok tetapi masih menggunakan algoritma lama (Laravel/CI/MD5), sehingga aplikasi disarankan langsung memperbarui hash di database ke standar Tri-Layer Pakem!
Auto Trait Implementations§
impl Forget for LegacyAuthAdapter
impl Freeze for LegacyAuthAdapter
impl Move for LegacyAuthAdapter
impl RefUnwindSafe for LegacyAuthAdapter
impl Send for LegacyAuthAdapter
impl Sync for LegacyAuthAdapter
impl Unpin for LegacyAuthAdapter
impl UnsafeUnpin for LegacyAuthAdapter
impl UnwindSafe for LegacyAuthAdapter
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more