Hi All
This topic started as a result of the question asked in the link below
https://www.b4x.com/android/forum/t...-cloud-messaging-fcm.67716/page-9#post-454922
The question was related to the fact that I am attempting to send Firebase notification messages directly between mobile devices without having a server in between. The security of the approach was questioned based on the fact that someone can decompile the code and get the Server API key.
My last post was:
Here is what I am trying to understand based on the conversation above and based on the fact that someone can decompile the apk in an attempt to hack the system.
1. In my solution, the server API key is not part of the apk at all
2. The key is exchanged between the server and the client in encrypted format and using a secure http handshake (session keys, message signing etc.. )
3. The descrypted key is stored in a Global variable and not in a file
1. Is it possible for someone to get access to the key based on the above? I am not talking about decrypting the key at this point. Just accessing the variable holding the key in memory
2. assuming that someone is attempting to hack the system, wouldn't it be easier to figure out a way to send messages to the small B4J server than figuring out the encryption used to retrieve the key
Please comment
This topic started as a result of the question asked in the link below
https://www.b4x.com/android/forum/t...-cloud-messaging-fcm.67716/page-9#post-454922
The question was related to the fact that I am attempting to send Firebase notification messages directly between mobile devices without having a server in between. The security of the approach was questioned based on the fact that someone can decompile the code and get the Server API key.
My last post was:
Here is what I am trying to understand based on the conversation above and based on the fact that someone can decompile the apk in an attempt to hack the system.
1. In my solution, the server API key is not part of the apk at all
2. The key is exchanged between the server and the client in encrypted format and using a secure http handshake (session keys, message signing etc.. )
3. The descrypted key is stored in a Global variable and not in a file
1. Is it possible for someone to get access to the key based on the above? I am not talking about decrypting the key at this point. Just accessing the variable holding the key in memory
2. assuming that someone is attempting to hack the system, wouldn't it be easier to figure out a way to send messages to the small B4J server than figuring out the encryption used to retrieve the key
Please comment