all InfoSec news
Ionic + Capacitor Security Tips
March 2, 2024, 8:55 p.m. | Julio Merlo
DEV Community dev.to
For this tips will be use the Obfuscation approach and rules and enable the minify and compress code.
Content
- Obfuscation
- Obfuscation Rules
- Rooted Device Checking
- Detect Jailbreak Phone
- SSL Pinning
Obfuscation
To obfuscate, you need to find the build.gradle file and enable the property minifyEnabled to true, like this:
release {
minifyEnabled true
...
}
Obfuscation Rules
After that, add the below lines in proguard-rules.pro file:
##############
# Ionic Config
##############
-keep class org.apache.cordova.** { *; }
-keep class org.apache.cordova.camera.** …
build code detect device enable file find gradle jailbreak mobile obfuscation phone pinning property release rules security security tips ssl ssl pinning tips tutorial
More from dev.to / DEV Community
Jobs in InfoSec / Cybersecurity
CyberSOC Technical Lead
@ Integrity360 | Sandyford, Dublin, Ireland
Cyber Security Strategy Consultant
@ Capco | New York City
Cyber Security Senior Consultant
@ Capco | Chicago, IL
Sr. Product Manager
@ MixMode | Remote, US
Corporate Intern - Information Security (Year Round)
@ Associated Bank | US WI Remote
Senior Offensive Security Engineer
@ CoStar Group | US-DC Washington, DC