aes_crypt
aes_crypt copied to clipboard
Moved to Null Safety
Moved the project to null safety
@3htsham thank you for this work, much appreciated!
@3htsham I found one issue that is easy to correct.
From this file:
aescrypt.dart
For this function:
Future<String> decryptTextFromFile(String srcFilePath, {bool utf16 = false, Endian endian = Endian.big}) async {
Change this line:
final Uint8List decData = await decryptDataFromFileSync(srcFilePath);
To: (changing the call to an async call instead of synchronous.)
final Uint8List decData = await decryptDataFromFile(srcFilePath);
Best regards,
Karl
The complaint of that "this package isn't null safe still persists", even if this package is used.
@PeterAkande I'm using this pull request with my above change, works great. Granted there are a few corrections you may need to make to get the code super clean, but I've got it running great.
Okay, Thanks.
@PeterAkande Forgot to mention. I used GitHub Desktop to check out this pull request. This tool makes it a breeze to check out a pull request that has not yet been merged.
@longtimedeveloper Hello, so your branch is ready to be used?
There is also this package: https://pub.dev/packages/aes_crypt_null_safe