Creating RSA keys from known parameters in Java

前端 未结 3 630
终归单人心
终归单人心 2020-12-31 06:00

I\'m working on implementing Bing Cashback. In order to verify an incoming request from Bing as valid they provide a signature. The signature is a 160-bit SHA-1 hash of the

3条回答
  •  太阳男子
    2020-12-31 06:31

    Use java.security.spec.RSAPublicKeySpec. It can construct a key from exponent and modulus. Then use java.security.KeyFactory.generatePublic() with key spec as a parameter.

提交回复
热议问题