Skip to content

Commit 13349e0

Browse files
committed
2 parents 4024a87 + 74300b8 commit 13349e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ Install-Package NETCore.Encrypt -Version 2.0.2
111111
var publicKey = rsaKey.PublicKey;
112112
var srcString = "rsa encrypt";
113113

114+
114115
var encrypted = EncryptProvider.RSAEncrypt(publicKey, srcString);
116+
117+
// On mac/linux at version 2.0.5
118+
var encrypted = EncryptProvider.RSAEncrypt(publicKey, srcString, RSAEncryptionPadding.Pkcs1);
115119
```
116120

117121
- #### RSA decrypt
@@ -121,6 +125,9 @@ Install-Package NETCore.Encrypt -Version 2.0.2
121125
var encryptedStr = "xxxx";
122126

123127
var decrypted = EncryptProvider.RSADecrypt(privateKey, encryptedStr);
128+
129+
// On mac/linux at version 2.0.5
130+
var encrypted = EncryptProvider.RSADecrypt(privateKey, encryptedStr, RSAEncryptionPadding.Pkcs1);
124131
```
125132

126133
- #### RSA from string (add at version 2.0.1)

0 commit comments

Comments
 (0)