How to use public encryption to manage licensing on android applications?

早过忘川 提交于 2019-12-03 20:26:23

I see nothing really difficult to implement your intents:

  1. Your licensing server must have its own private and public key pairs.
  2. Then you have to create private key in your application during 1st run/install. It can be done just randomly
  3. Then you have to interchange between your application and server with public keys
  4. During buying/licensing procedure your application should encrypt MAC address or other (gmail id, IMEI code whatever) send to server - server stores key
  5. In order to check validity of license application sends to server cipher of MAC - server checks it against stored in database

If you don't know how to implement private/public keys stuff - read manuals, there're a lot of implementations of Diffie-Hellman's procedure - it's easy and nothing special there

Abhay

I was looking to implement licensing on apps that are not distributed through Play and came across this:

https://code.google.com/p/droidactivator/

Maybe it will help you too?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!