Android: Login Module
Implement a login UI with the following functionalities
- User can input a pair of <username, password>
- Generate a key derived from <password>, using SHA-256 cryptographic hash
- Construct a LOGIN interest "/home/controller/login/<username>", signed by the key generated in 2 (using HMAC)
- Expresses the LOGIN interest, in case a. Message "success" sent back, display the message and move to Device List Module b. Message "invalid username or password" sent back, display the message c. Interest times out, display the message "can't connect to controller"
All interests should be signed, and all data packets should be verified using the same key derived from <password>