我正在使用C#生成一个RSA公钥/私钥来加密用户信息。我需要使公钥和指数可用于其他系统和语言的思想。他们将对数据进行签名,C# web服务将对其进行解密并对其执行操作。现在,我有
`RSArsa = new RSACryptoServiceProvider(2048); // Generate a new 2048 bit RSA key RSAParameterspar = rsa.ExportParamet
我使用rsa.encrypt对消息进行编码,但是无法使用.decode()将加密的数据转换为str。这有点奇怪,因为加密的数据是字节字符串,将其转换为str应该没有任何问题。self.my_pubkey] # actually don't care about type of components, they are correct 我的代码: import json print(ex)