How do I use a C# generated RSA public key in Android?

后端 未结 1 2012
情深已故
情深已故 2021-01-31 12:40

I want to ensure message privacy between an Android app and C# ASP.NET server, in a situation where HTTPS can\'t be assumed to be available.

I want to use RSA to encrypt

1条回答
  •  执念已碎
    2021-01-31 13:05

    Try using new BigInteger(1, modulus). BigIntegers are signed and as the modulus starts with the first bit set to 1, it will always be interpreted as a negative number.

    0 讨论(0)
提交回复
热议问题