Today I want to present you a new JSON-parsing library – LoganSquare, written by BlueLine Labs. It is told to be the fasted available and quite easy to use, so I couldn’t miss it 😉 Below you will find an example Android project, which serializes and parses some objects.
Also, I have run Logan’s Benchmark project myself and indeed, the results are good. Not as good, as on their GitHub’s page, but still. Just to make everything clear, I have used Nexus 5 running Android 6.0.1 (ART).
As you can see, LoganSquare wins in every category. Lets check how we can use it in our project, shall we?
Continue reading Tutorial: Parse JSON with LoganSquare
It is the last day of March and I couldn’t miss the opportunity to share all great links I’ve gathered through the last two months. There is also a “Happy Easter!” greeting which goes to all who celebrate Easter in March and May! What about links, this time the absolute winner is Game Dev, but there are a few wonderful music albums, as well as articles on design matters. Well, check out yourself!
Here’s the link to the previous Digest 😉
Continue reading #2016/February-March Useful links
Today’s tutorial will be about SQLCipher and its integration in Android (with the means of Android Studio). Just to give some introduction, SQLCipher is used for a full database encryption. What full means is that the DB file is entirely encrypted, not only separate rows or tables. Zetetic, the company behind SQLCipher, provides Community and Commercial edition. You can use the former for commercial projects, though, just have to provide license doc in your app. Also, SQLCipher is not for Android only, it can be used on various platforms.
Regarding security features, SQLCipher uses 256-bit AES in CBC mode by default, with 1kB page size, and it derives the key data using PBKDF2 function. The difference in API that you instantly notice is the passphrase argument in
getWritableDatabase() methods. Now, this passphrase should never be stored in the application, otherwise the whole point of encryption is wasted. One thing to keep in mind, is that the passphrase is not a key! Yes, the DB is encrypted using the key, but it is generated based on the passphrase (~ password) and also can be re-set using PRAGMA rekey command.
Continue reading Tutorial: Add SQLCipher to your Android app
Hi, guys! It’s already the begging of February (which means I haven’t posted a digest on time, oops!), and so I’m finally posting a joined digest from December and January! This time there is a bit of everything, with a slight advantage of music which I think is good, because you can start a new year with some swing 😉
I really hope you’ll find these things useful. As always, the link to the previous digest is here.
Enjoy the articles and let me know if you liked them. Thanks 😉
Continue reading #2015/12-2016/01 Useful links