1

How to load adbkey.pub with Python RSA

view story
linux-howto

http://stackoverflow.com – Since Android v4.2.2, Google enforced RSA authentication over ADB. I have a Cortex-M0 board with USB OTG, which communicates with Android over ADB. Now I have to deploy RSA authentication in firmware. I have collected sources code from Android ADB, AVRCryptolib/ARMCryptolib. Since I am a newbie of RSA authentication, I use Python RSA module as my leanring start. Python RSA Python RSA can generate 2048bit RSA key pair, and encrypt/decrypt, sign/verify correctly with generated key pair. Here is my source code: -*- coding: utf-8 -*- # with_statement is used in Python 2.6+, from __future__ im (HowTos)