Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android billing - in the file Security.java should the base64EncodedPublicKey be the encoded value?

Should I paste the actual public key of my app right into the value of this variable?

Or should I encode it and then whatever the encoded string is, I'd make that string into the value of this variable?

Which should it be?

like image 248
Genadinik Avatar asked Jul 12 '12 01:07

Genadinik


1 Answers

The public key present in your Android Developer Console (which can be found under 'Edit Profile') is already Base64 encoded. Just copy paste the content of the key in your source file. For example, if you have something like this:

enter image description here

Then in your Security.java:

String base64EncodedPublicKey = "MIIBIjANBgkqhkiG9w0BAQ......";
like image 135
aromero Avatar answered Oct 01 '22 12:10

aromero