Android Question encryption with SQLCipher

Discussion in 'Android Questions' started by arastoo, Apr 22, 2018.

  1. arastoo

    arastoo Member Licensed User

    Hey guys :)

    I used this library to protect data

    Before the encryption, the database size was 104 MB, but after the encryption 98.2 MB.
    (The volume of the database was reduced to 6 MB).:D:D

    But

    After the release of the program, we see that the APK file size has changed from 22.5 MB to 104 MB !!!!!! o_Oo_Oo_O

    If after the encryption the volume of the database is reduced 6 MB, how is the program size larger(22.5 MB ==> 104 MB)? :eek::eek::eek:
    Could you describe this phenomenon to me?
     

    Attached Files:

    • 1.PNG
      1.PNG
      File size:
      245.9 KB
      Views:
      40
  2. Erel

    Erel Administrator Staff Member Licensed User

    Yes. The APK file is a regular zip file.

    The encrypted database format is "random" so compression will not do anything. Unlike the regular db where compression can be effective.
     
    Peter Simpson likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice