RSA encryption and decryption

Synopsis

RSA encryption is an asymmetric encryption algorithm. RSA encryption is used in data interaction between Miracle Games platform and developers (hereinafter referred to as developers), which mainly involves the interface of verifying login status after players log in and notifying developers after players recharge 。

Developers generate RSA key pair

Build from website:http://web.chacuo.net/netrsakeypair(Or https://rsatool.org

If the developer server uses C#language, the private key needs to be converted to XML format, which can be converted online through the following tools。

https://www.ssleye.com/ssltool/pem_xml.html

Developers verify that the key pair is symmetric

After generating the key pair and before using it, please log in to the following website to verify that the key pair you generated is symmetric。

Login website:http://tool.chacuo.net/cryptrsakeyvalid

Upload the public key in the key pair to the MG background

Get MG public key

Log in the MG background, as shown in the figure above to obtain the MG public key. If the developer server uses C#language, the MG public key needs to be converted to XML format. In the example code, the converted public key is used。