-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add encryption for content on cache file #165
Add encryption for content on cache file #165
Conversation
Seems like it will work for one specific instance of |
@Bohdan-Kim is the PRO will encrypt this cache, so it not visible to pentester? so all i need is just use the PRO? |
yes encryption in PRO |
@Bohdan-Kim after i see the implementation, only android that have this FeatureCache.txt, can we add encrypt just for the local cache on android? |
@argaasasta we can but it's overhead for this case. can we just add ability for you to disable the local cache on android? |
If user of the SDK provides |
@@ -24,6 +24,7 @@ abstract class SDKBuilder( | |||
val attributes: Map<String, Any>, | |||
val trackingCallback: GBTrackingCallback, | |||
val encryptionKey: String?, | |||
val localEncryptionKey: String? = null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Bohdan-Kim yes please, can you add this? so the FeatureCache.txt will not be there |
internal fun gbSerialize(): JsonElement = when(this) { @Bohdan-Kim could you make this function is not internal, so we can still use on the outside? |
@argaasasta I think yes |
i still want to use the GBFeatureResult for return, and i cant change the GBValue to json that i want I have copy this
|
@argaasasta Are you sure that you feature type is JSON? Maybe safe cast. |
@Bohdan-Kim yes, it works previously with this code since value is change to gbValue on new version, we need to make some refactor too |
About the next steps with this pull request. |
Sure, i will close this PR |
For fix this issue
#164