Posts

Showing posts from June, 2014

A LAN server discovery web app

Image
A LAN server discovery web app Table of Contents Requirement Next movement how to deploy the service? 1 Requirement the purpose of this project: Many services were running in my desktop environment at the company LAN, but the IP address was always alternate after I reboot, so my initial intent to develop this app is to let my fellow colleagues detect my desktop's IP address much quickly. this solution is to run a HTTP server on my desktop, and the client must post request at least with a key/value pair: req=get_ip. Then a client scan all the LAN IP address with that request, my computer will response with {'status' : 0, 'ret':ip_address}. 2 Next movement Since I am studied a lot of certification and encryption knowledge recently, I guess the next target of this project is to add a certificate process to reject the fake one. The simple ways were to employ an asymmetry encryption algorithm like RSA, then client generate a random number

Android's Package Management System

Image
Android's Package Management System Table of Contents How to resign an android app? How to install an android apk? android package management system. How to get an app's certification? 1 How to resign an android app? Android apk's digital signature strategy just employs the java's jar package method. So We can use java's keystore and jarsigner tools to sign an apk. And the first step is to generate a valid certification: make your own keystore keytool -genkey -v -keystore iboxpay.keystore -alias ibox -keyalg RSA -keysize 2048 -validity 100000 please remember the store password and key password, I always set them the same one. then before to resign an apk, I should remove its original signature first. remove apk's digital signature zip -d whatever.apk "META-INF/*" After that, I can sign that apk by our own certification. sign apk by jarsigner jarsigner -verbose -keystore iboxpay.keystore -storepass 123456 what