Skip to content Skip to sidebar Skip to footer

Set Modulus And Exponent From Vb.net To Android/java

I have this RSA public key which is generated in VB.Net my server. tv0tzng4pW7erDo2ke/Ku9TGKRukAzx+lihZVblIOE6GWIoiwlILOANeVliZLi1s5qMsXEUA4GV2woC

Solution 1:

First, you have to decode the modulus and the exponent from Base64.

Second, you have to use a different constructor for BigInteger:

BigInteger(int signum, byte[] magnitude)

with signum as one, because the both values are not in 2-complement notation and are always positive.

Post a Comment for "Set Modulus And Exponent From Vb.net To Android/java"