I am wondering if anyone has any links to any literature on how to approach this problem.
I get two datasets from the Android Market; โSigned Data,โ JSON representation of the purchase, and โSignature,โ encoded in Base64, an encrypted representation of signed data.
I think you need to use the public key to encrypt the signed data and compare it with the signature?
My strategy so far has been as follows:
1) Base64 decodes the public key and uses OpenSSL :: PKey :: RSA.new to create the public key object
2) Base64 decodes the signature returned from Android
3) Encrypt the signed data using the public key and compare with the signature
What is the correct way to do this in Ruby?
source share