sasl_scram

Creator: coderz1093

Last updated:

0 purchases

sasl_scram Image
sasl_scram Images
Add to Cart

Description:

sasl scram

Sasl Scram for Dart #
Implementation of the Salted Challenge Response Authentication Mechanism in Dart.
Usage #
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
}
copied to clipboard
Features and bugs #
Please file feature requests and bugs at the issue tracker.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator