<div dir="ltr">hi, <div><br></div><div>    I tried to implement google play store signature verification in erlang this morning, I think i can use public_key:verify(Msg, DigestType, Signature, Key) -> boolean() to do my job, but I don't know how to generate a public key from encoded public key provided by play store.</div><div><br></div><div>     In case of java, we can do this:</div><div><br></div><div>            <span class="">byte</span><span class="">[] </span>decodedKey<span class=""> = Base64.decode(</span>encodedPublicKey<span class="">, Base64.</span>DEFAULT<span class="">);</span></div>








<p class="">            KeyFactory <span class="">keyFactory</span> = KeyFactory.getInstance(<span class="">KEY_FACTORY_ALGORITHM</span>);</p>
<p class="">            <span class="">return</span> <span class="">keyFactory</span>.generatePublic(<span class="">new</span> X509EncodedKeySpec(<span class="">decodedKey</span>));</p><p class="">    </p><p class="">     Thanks,</p><p class="">      Xiaobin, Xu    </p><p class="">     </p></div>