diff --git a/lib/src/messages/common/utils.dart b/lib/src/messages/common/utils.dart index 6e3eb42..8441b6a 100644 --- a/lib/src/messages/common/utils.dart +++ b/lib/src/messages/common/utils.dart @@ -68,7 +68,7 @@ Uint8List encodeUtf16le(String s) => Uint8List.fromList( ); Uint8List createLMHashedPasswordV1(String password) { - var oemPassword = ascii.encode(password.toUpperCase()); + var oemPassword = utf8.encode(password.toUpperCase()); var length = math.min(oemPassword.length, 14); var keyBytes = List.filled(14, 0); _arrayCopy(oemPassword, 0, keyBytes, 0, length); diff --git a/pubspec.yaml b/pubspec.yaml index 65b9af2..edfd175 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,13 +1,13 @@ name: ntlm description: Library for making HTTP requests that require NTLM authentication -version: 2.0.1 +version: 2.0.3 homepage: https://github.com/mrbbot/ntlm environment: sdk: '>=2.12.0 <3.0.0' dependencies: - http: ^0.13.1 + http: ^1.2.2 pointycastle: ^3.0.1 fixnum: ^1.0.0