This confused me too! It does appear that MasterKey.Builder has replaced it. Try using: val masterKey = MasterKey.Builder(this).setKeyGenParameterSpec(advancedSpec).build()
@@ineffable6362 Yes, in the project I used the masterkey build itself by setting the MasterKey.KeyScheme AES256_GCM normally, and creating an alias of my own.
@@jvcma157 True, however to set things such as enabling StronBox for devices above Android P you need to use the builder like shown in the video. Kinda annoying they would show an OUTDATED way of programming on such an important video
@@0x4ym4n well, i don't think. Put baseurl in build gradle and turn on proguard, you won't be able to read with apktools and normal online decompilers.
I'm using "String care" library to encrypt my important data with signing key and put encrypted data inside NDK method so it so hard to decompile and rebuild of course you need my signing key this way work perfectly with me, but I wonder if there is build in method to encrypte string value with signing key or my fingerprint nested use string care frame work😅
This was super helpful! Thanks Jon!
ooh ok!😂
ah this helped me so much on my latest project thank you
I didn't expect to see you here 😅😂
tldr just use AES-256 in a modern secure mode with hardware backed keys
When will the support for Kitkat+ come?
Thanks. Its so cool. When I tried to add encryption to my project it blow my mind. I hope with jetpack it will be much easier.
Does it support phones without google playStore? (Like Xiaomi, Huawei and some others)
MasterKeys is deprecated on 1.1.0, MasterKeys is replaced for MasterKey.Builder right?
This confused me too! It does appear that MasterKey.Builder has replaced it. Try using: val masterKey = MasterKey.Builder(this).setKeyGenParameterSpec(advancedSpec).build()
@@ineffable6362
Yes, in the project I used the masterkey build itself by setting the MasterKey.KeyScheme AES256_GCM normally, and creating an alias of my own.
@@ineffable6362
MasterKey.Builder ends up doing behind the hood what we were doing before with MasterKeys.getOrCreate()...
@@jvcma157 True, however to set things such as enabling StronBox for devices above Android P you need to use the builder like shown in the video. Kinda annoying they would show an OUTDATED way of programming on such an important video
@@ineffable6362
I managed to set the strongbox using MasterKey.builder too
Assets folder can be secure use this code in android application using through android studio
Please help me my Nokia 7plus so many problems
What about encrypt strings values as Base URL string to prevent my data if some one try to decompile my app
You can only encrypt your data at runtime and not compile time. You have to find another way to secure your static data. Like url, api keys, etc
Simply put in build gradle
Putting it on build gradle is still be accessible by the unauthorized parties after decompiling it
@@0x4ym4n well, i don't think. Put baseurl in build gradle and turn on proguard, you won't be able to read with apktools and normal online decompilers.
I'm using "String care" library to encrypt my important data with signing key and put encrypted data inside NDK method so it so hard to decompile and rebuild of course you need my signing key this way work perfectly with me, but I wonder if there is build in method to encrypte string value with signing key or my fingerprint nested use string care frame work😅
Good.evening
In the nick of time.