Obfuscating with Flutter

What is obfuscate?

@P=split//,".URRUU\c8R";@d=split//,"\nrekcah xinU / lreP rehtona tsuJ";sub p{
@p{"r$p","u$p"}=(P,P);pipe"r$p","u$p";++$p;($q*=2)+=$f=!fork;map{$P=$P[$f^ord
($p{$_})&6];$p{$_}=/ ^$P/ix?$P:close$_}keys%p}p;p;p;p;p;map{$p{$_}=~/^[P.]/&&
close$_}%p;wait until$?;map{/^r/&&<$_>}%p;$_=$d[$q];sleep rand(2)if/\S/;print

Pros and Cons of Obfuscate

  • Faster loading time
  • Reduced memory usage
  • Protection for trade secrets
  • Prevention of circumvention
  • Prevention of virus detection
  • obfuscation can make reading, writing, and reverse-engineering a program difficult and time-consuming,
  • It adds time and complexity to the build process for the developers.
  • Certain kinds of obfuscation can degrade performance and/or require Internet.

Implementation…

flutter build appbundle --obfuscate --split-debug-info=/<directory>
flutter build appbundle --target-platform android-arm,android-arm64,android-x64 --obfuscate --split-debug-info=/<directory>
flutter build apk --obfuscate --split-debug-info=/<directory>
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi --obfuscate --split-debug-info=/<directory>
flutter build apk --obfuscate --split-debug-info=./ProjectFolderName/debug
flutter build apk --obfuscate --split-debug-info=/Users/apple/Desktop/items/

Thank you…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store