The B4A RSA key is in format ot byte array, while the .Net RSA key is in XML format.
When an Android client program connects to a .Net server program, they have to exchange RSA public keys, but their RSA public keys are in different format.
How to convert one into another?
Example of .Net RSA public key:
<RSAKeyValue>
<Modulus>
upVkIXZywpuL6VLDpmCTbFC9YU8ShE1i/xZZNl90izs9tdw+ZesQmvtlhjA2WCbCHoh1SSANXQFFHqEU883dQzmA2lBZKhwQpfoz4lCylR/qxdbH+qlIwUzRVai+LY9eqHsqHchV2gnOiHKvmbrxVlOl8pykh0z2ADebuOGpDKc=</Modulus>
<Exponent>AQAB</Exponent>
</RSAKeyValue>
When an Android client program connects to a .Net server program, they have to exchange RSA public keys, but their RSA public keys are in different format.
How to convert one into another?
Example of .Net RSA public key:
<RSAKeyValue>
<Modulus>
upVkIXZywpuL6VLDpmCTbFC9YU8ShE1i/xZZNl90izs9tdw+ZesQmvtlhjA2WCbCHoh1SSANXQFFHqEU883dQzmA2lBZKhwQpfoz4lCylR/qxdbH+qlIwUzRVai+LY9eqHsqHchV2gnOiHKvmbrxVlOl8pykh0z2ADebuOGpDKc=</Modulus>
<Exponent>AQAB</Exponent>
</RSAKeyValue>