Skip to content

Commit d86704d

Browse files
authored
Merge pull request #11 from catcherwong/master
Fixed a mistake of CreateRsaKey method .
2 parents 1d905cb + faf4747 commit d86704d

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)