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
SOC 2 Manager, Audit and Certification
@ Deloitte | US and CA Multiple Locations
Network Security Engineer
@ Meta | Menlo Park, CA | Remote, US
Security Engineer, Investigations - i3
@ Meta | Washington, DC
Threat Investigator- Security Analyst
@ Meta | Menlo Park, CA | Seattle, WA | Washington, DC
Security Operations Engineer II
@ Microsoft | Redmond, Washington, United States
Engineering -- Tech Risk -- Global Cyber Defense & Intelligence -- Bug Bounty -- Associate -- Dallas
@ Goldman Sachs | Dallas, Texas, United States