Skip to content

Commit 77be821

Browse files
Dillon Nysdnys1
authored andcommitted
chore(secure_storage): Fix analysis issue
1 parent d382c89 commit 77be821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/win32/data_protection.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import 'package:win32/win32.dart'
1414

1515
/// Encrypts the provided string as a [Uint8List].
1616
Uint8List encryptString(String value) {
17-
final encodedValue = utf8.encode(value) as Uint8List;
17+
final encodedValue = const Utf8Encoder().convert(value);
1818
return encrypt(encodedValue);
1919
}
2020

0 commit comments

Comments
 (0)