diff --git a/lib/src/private/smtp/commands/smtp_auth_cram_md5_command.dart b/lib/src/private/smtp/commands/smtp_auth_cram_md5_command.dart index 24519ab8..8f8cbbf0 100644 --- a/lib/src/private/smtp/commands/smtp_auth_cram_md5_command.dart +++ b/lib/src/private/smtp/commands/smtp_auth_cram_md5_command.dart @@ -1,6 +1,6 @@ import 'dart:convert'; import 'package:crypto/crypto.dart'; - +import 'dart:typed_data'; import '../../../smtp/smtp_response.dart'; import '../smtp_command.dart'; @@ -47,7 +47,7 @@ S: 235 Authentication succeeded var password = utf8.encode(_password!); if (password.length > 64) { final passwordDigest = md5.convert(password); - password = passwordDigest.bytes; + password = Uint8List.fromList(passwordDigest.bytes); } final nonce = base64.decode(base64Nonce); final hmac = Hmac(md5, password);