We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93b1375 commit faf4747Copy full SHA for faf4747
src/NETCore.Encrypt/EncryptProvider.cs
@@ -437,7 +437,7 @@ public static RSAKey CreateRsaKey(RsaSize rsaSize = RsaSize.R2048)
437
{
438
using (RSA rsa = RSA.Create())
439
440
- rsa.KeySize = (int) RsaSize.R2048;
+ rsa.KeySize = (int) rsaSize;
441
442
string publicKey = rsa.ToJsonString(false);
443
string privateKey = rsa.ToJsonString(true);
0 commit comments