Using Base64 encoded Public Key to verify RSA signature

前端 未结 3 1151
梦毁少年i
梦毁少年i 2020-12-06 00:29

In a nutshell, this is my problem:

private string publicKeyString = \"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDVGUzbydMZS+fnkGTsUkDKEyFOGwghR234d5GjPnMIC0RFtXt         


        
3条回答
  •  暖寄归人
    2020-12-06 00:52

    If your partner also uses .NET, he/she can derive from Mono's makecert https://github.com/mono/mono/blob/bf55818da11240bd108dc51b374fae3d3b5482ce/mcs/tools/security/makecert.cs to generate certificate files and send to you directly.

    In that case, you can easily load certificates instead of raw bytes,

    http://www.lextm.com/2012/02/simple-publicprivate-key-signing-sample-code/

提交回复
热议问题