Skip to content

Commit c926c6f

Browse files
author
Memhave
authored
Update README.md (#48)
1 parent a28b438 commit c926c6f

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ Please report issues [here](https://github.com/maythamfahmi/CryptoNet/issues).
4040

4141
The library can be used in 2 ways:
4242

43-
* Symmetric way
44-
* Asymmetric way
43+
* Symmetrically encryption
44+
* Asymmetrically encryption (public key encryption)
4545

46-
#### Symmetric way
46+
#### Symmetric encryption
4747
You use the same key (any secret key) for encryption and decryption.
4848

49-
#### Asymmetric way
49+
#### Asymmetric encryption
5050
In an asymmetric way, the library can use its own self-generated RSA key pairs (Private/Public key) to encrypt and decrypt content.
5151

5252
You can store the private key on one or more machines. The public key can easily distribute to all clients.
@@ -57,18 +57,20 @@ It is also possible to use asymmetric keys of the X509 Certificate instead of ge
5757

5858
The main concept with asymmetric encryption is that you have a Private and Public key. You use the Public key to encrypt the content and use the Private key to decrypt the content back again.
5959

60+
Read more about asymmetric or public key encryption [here](https://www.cloudflare.com/learning/ssl/what-is-asymmetric-encryption/)
61+
6062
You find the complete and all examples for:
6163

62-
- Rsa encryption [here](https://github.com/maythamfahmi/CryptoNet/blob/main/CryptoNet.Cli/ExampleRsa.cs)
63-
- Aes encryption [here](https://github.com/maythamfahmi/CryptoNet/blob/main/CryptoNet.Cli/ExampleAes.cs)
64+
- RSA encryption [here](https://github.com/maythamfahmi/CryptoNet/blob/main/CryptoNet.Cli/ExampleRsa.cs)
65+
- AES encryption [here](https://github.com/maythamfahmi/CryptoNet/blob/main/CryptoNet.Cli/ExampleAes.cs)
6466

6567

6668
Here are some examples:
6769

6870
### Examples
6971

7072
### Example: Encrypt and Decrypt Content With Symmetric Key
71-
In this example CryptoNetAes generate a random key and iv, hence we use the same instance we can both encrypt and decrypt.
73+
In this example CryptoNetAes generate a random key and IV, hence we use the same instance we can both encrypt and decrypt.
7274
```csharp
7375
ICryptoNet cryptoNet = new CryptoNetAes();
7476
var key = cryptoNet.ExportKey();
@@ -98,7 +100,7 @@ var decrypt = cryptoNetKeyImport.DecryptToString(encrypt);
98100
Debug.Assert(ConfidentialDummyData == decrypt);
99101
```
100102

101-
### Example: Generate Asymmetric Rsa key pair, Export Private and Public, use Public key to encrypt with and Use Private key to decrypt with
103+
### Example: Generate Asymmetric RSA key pair, Export Private and Public, use Public key to encrypt with and Use Private key to decrypt with
102104
```csharp
103105
ICryptoNet cryptoNet = new CryptoNetRsa();
104106

0 commit comments

Comments
 (0)