v0.1.2
sasl_scram
Ein Paket, das SASL/SCRAM-Authentifizierung bereitstellt. Sowohl scram-1 als auch scram-256 werden verwaltet.
4Likes 135.00030-Tage-Downloads150Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
Sasl/scram-Authentifizierungsmechanismen
Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
Implementation of the Salted Challenge Response Authentication Mechanism in Dart.
A simple usage example:
import 'dart:typed_data';
import 'package:crypto/crypto.dart';
import 'package:sasl_scram/sasl_scram.dart';
void main() {
final bytesReceivedFromServer = Uint8List(0); // No data needed when starting authentication
final authenticator = ScramAuthenticator(
'SCRAM-SHA-256', // Optionally choose hash method from a list provided by the server
sha256,
UsernamePasswordCredential(username: 'dart', password: 'dart'),
);
final bytesToSentToServer = authenticator.handleMessage(
SaslMessageType.AuthenticationSASL, // Get type type from the server message
bytesReceivedFromServer, // Append the remaining bytes
);
print(bytesToSentToServer); // Wrap these bytes with your message which goes back to the server
}
Please file feature requests and bugs at the issue tracker.
Nach Anwendungsfall filtern, Aktivität vergleichen und vor der Nutzung das Originalprojekt prüfen.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗