File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments