RSACryptoServiceProvider 2048 bit RRS feed

  • Question

  • Dear all,

    We are going to upgrade certificates from 1024 bit to 2048 bit and do we need to initiate the RSACryptoServiceProvider class with 2048 keysize paramter(or just use default constructor can be suitable for 2048 bit also?)

    Dim RSA As RSACryptoServiceProvider = CType(cX509Cert.PublicKey.Key, RSACryptoServiceProvider)
    Dim cInBytes As Byte() = StringToBytes(sInData, TextType.eASCII)

    cOutData = RSA.Encrypt(cInBytes, False)

    Thanks and regards,

    Thursday, October 31, 2013 2:04 AM


  • Hi Wallace,

    On my side, the default constructor use 1024 bit key. You could test the below code on your computer.

    RSACryptoServiceProvider sa = new RSACryptoServiceProvider();


    Best Regards,

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Wallace Chan Monday, November 4, 2013 9:11 AM
    Friday, November 1, 2013 6:09 AM

All replies