sasl_scram
0.1.2, released 9 months ago by an unverified publisher
SASL SCRAM authentication implementation in Dart supporting scram-1 and scram-256.
What it does
Provides Salted Challenge Response Authentication Mechanism (SCRAM) authentication. Manages both scram-1 and scram-256 mechanisms for secure credential handling.
AI-written summary of version 0.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to authenticate against a backend or database using SASL SCRAM.
- You are implementing MongoDB or similar database connections requiring SCRAM-SHA-256.
Skip it when
- You are using OAuth or social sign-ins.
- Your backend relies entirely on standard HTTP bearer tokens or Firebase Auth.
Strengths
- Supports both scram-1 and scram-256.
- Pure Dart implementation works across multiple platforms including web, mobile, and desktop.
Weaknesses
- Niche functionality limited to SASL SCRAM protocol.
- Minimal documentation and usage examples beyond basic README.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Not documented
import 'dart:typed_data';
import 'package:crypto/crypto.dart';
import 'package:sasl_scram/sasl_scram.dart';
void main() {
final bytesReceivedFromServer = Uint8List(0);
final authenticator = ScramAuthenticator(
'SCRAM-SHA-256',
sha256,
UsernamePasswordCredential(username: 'dart', password: 'dart'),
);
final bytesToSentToServer = authenticator.handleMessage(
SaslMessageType.AuthenticationSASL,
bytesReceivedFromServer,
);
print(bytesToSentToServer);
}Alternatives
Packages that do the same job and could replace sasl_scram.
- google_sign_in_ios
iOS and macOS implementation of Google Sign-In for Flutter
90Compare - google_sign_in_android
Android implementation of the google_sign_in plugin
88Compare - firebase_ui_oauth
Firebase UI OAuth widgets for authentication with social providers
84Compare - firebase_ui_oauth_google
Flutter widgets for Google OAuth sign‑in using Firebase UI.
81Compare
Works with
Packages commonly used together with sasl_scram: ones it builds on, ones built on it, and its own family.