Skip to content
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.

Detect weak key size for RSA #4

Open
mcwww opened this issue Jul 26, 2016 · 0 comments
Open

Detect weak key size for RSA #4

mcwww opened this issue Jul 26, 2016 · 0 comments
Assignees

Comments

@mcwww
Copy link
Member

mcwww commented Jul 26, 2016

        UnicodeEncoding ByteConverter = new UnicodeEncoding();
        //Create byte arrays to hold original, encrypted, and decrypted data. 
        byte[] dataToEncrypt = ByteConverter.GetBytes("Data to Encrypt");
        byte[] encryptedData;
        byte[] decryptedData;

        //Create a new instance of RSACryptoServiceProvider to generate 
        //public and private key data.  Pass an integer specifying a key- 
        //length of 2048.
        RSACryptoServiceProvider RSAalg = new RSACryptoServiceProvider(1000);
@mcwww mcwww self-assigned this Jul 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant