Skip to content

Commit faf4747

Browse files
authored
🐛 Fixed a mistake of CreateRsaKey method .
1 parent 93b1375 commit faf4747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NETCore.Encrypt/EncryptProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public static RSAKey CreateRsaKey(RsaSize rsaSize = RsaSize.R2048)
437437
{
438438
using (RSA rsa = RSA.Create())
439439
{
440-
rsa.KeySize = (int) RsaSize.R2048;
440+
rsa.KeySize = (int) rsaSize;
441441

442442
string publicKey = rsa.ToJsonString(false);
443443
string privateKey = rsa.ToJsonString(true);

0 commit comments

Comments
 (0)