Skip to content

Commit

Permalink
Merge pull request #231 from Tzanou123/main
Browse files Browse the repository at this point in the history
Error: A value of type 'List<int>' can't be assigned to a variable of type 'Uint8List'.
  • Loading branch information
robert-virkus authored Nov 18, 2023
2 parents 83fcefb + af9a15b commit c47fc1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/private/smtp/commands/smtp_auth_cram_md5_command.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c47fc1b

Please sign in to comment.