SafeSlingerProject / SafeSlinger-AppEngine

Source code for App Engine platform server SafeSlinger
MIT License
9 stars 4 forks source link

add crypto support for GAE #18

Closed tenmalin closed 9 years ago

tenmalin commented 9 years ago

Add crypto support for GAE to verify request generated from device. All operations we needed could implement via pycrypto 3rd library. We need

  1. capability to parse RAS public key from X509 PEM format.
  2. validate PKCS#1 signature with a given RSA public key.

According to pycrypto, we have to convert uploaded public key from pem to der encoding, and then extract RSA public key from der byte string.

Related issue: https://github.com/SafeSlingerProject/SafeSlinger-AppEngine/issues/9

tenmalin commented 9 years ago

Close via branch https://github.com/SafeSlingerProject/SafeSlinger-AppEngine/tree/crypto_devreg.