|
RSA加密问题,key是从C++复制过来的
“< RSAKeyValue >
< Modulus > 2ep5SM74pDKjHm7cWL0SbFADGIjy2360zmNEYTT+w1fBuPhHHK1s/XJ2uUeGSlFYbx2LaEQbwiEEup/QgbMwgNb1N9buHYA0rt4ouHwa652MnEDrHRY/Q8juo93QDysn7erwje7ZLMKG1neazDeon3z2PAqjH34OXnUPvlAe9Gk=</Modulus>
<Exponent>AQAB</Exponent>
<P>67cIa6ydU3iOp+yxI0WzFx5rActvhoYhN8obl53Tw+smTbG9zvK2a/07/qaVeEqraRSEXtCPSLflUh/+1AxRVw==</P>
<Q>7KtQpvPuWDtnHoxgSiqekw0miydwtP0/Tsd9LrY1DqciPBlll4G2yXYtSW/OeNDoNDWIMHuJsScghFbVw5qQPw==</Q>
<DP>1ygKMqasMJ3xsUw24JhlgavNRyUX1rYmKhN8nid9Pe8t1mtwcy9O3kGXerk55ERcNB17OkSrFVhupUj5RTs9Hw==</DP>
<DQ>hdfQscpL5Zwakj0jC26U5WbPgGzaoZCC6AOLeQpUcSf2BXT7bjZOcBqkO96+Lrc+SqBnl7uVwBj3m8Ab/hYAMw==</DQ>
<InverseQ>4gNyve3NW5WviRAK07U29GDnGX/h7exOUTnoL/G0T+DRZpZ5kBxLJzPNX4sKPVS5KQPJWyrrdmYurmfV5pDSeQ==</InverseQ>
<D>eXH/XeBbGcdOuSs3igz1M3/z+bx4/HLE+TDBbxtF0EAcKqXTm9vbHfSozeFaqhhjnKluhBFRFwOnywo9/cqLgHsIBzaHtHolswHMVuIJmfrVXk2mTuPoSmM1z3SrHi5IV/6oB5Mz8r0A0pzkwehvuupQ37VxbqREbrMUrUytPnE=</D>
</RSAKeyValue>”
请问一下,要用这个公钥来加密,怎么写代码,用哪个模块,麻烦大哥给个例子源码
|
|