v0.1.2
sasl_scram
एक पैकेज जो sasl/scram प्रमाणीकरण प्रदान करता है। दोनों scram-1 और scram-256 का प्रबंधन किया जाता है।
4लाइक 1.4 लाख30-दिन डाउनलोड150Pub अंक
AndroidiOSWebmacOSWindowsLinux
Sasl/scram प्रमाणीकरण तंत्र
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री 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.
उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗