We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d382c89 commit 77be821Copy full SHA for 77be821
packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/win32/data_protection.dart
@@ -14,7 +14,7 @@ import 'package:win32/win32.dart'
14
15
/// Encrypts the provided string as a [Uint8List].
16
Uint8List encryptString(String value) {
17
- final encodedValue = utf8.encode(value) as Uint8List;
+ final encodedValue = const Utf8Encoder().convert(value);
18
return encrypt(encodedValue);
19
}
20
0 commit comments