Skip to main content

scram_client_first

Function scram_client_first 

Source
pub fn scram_client_first(password: &str) -> Result<(AuthState, Vec<u8>)>
Expand description

Generates the client-first message for SCRAM-SHA-256.

Returns the auth state and the client-first message to send. The password is stored securely and will be zeroized when the AuthState is dropped.

§Errors

Currently infallible — always returns Ok. The Result return type is preserved for forward compatibility so future validation (password length, encoding checks) can surface errors without a signature change.