Skip to content

Commit

Permalink
Documentation has been updated
Browse files Browse the repository at this point in the history
  • Loading branch information
leventkaragol committed May 19, 2024
1 parent c6dc5c3 commit dbcc7b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ target_link_libraries(myProject PRIVATE libcpp-crypto OpenSSL::SSL OpenSSL::Cryp

## How to use? (Symmetric Encryption with AES)

To encrypt and decrypt the given text with AES-256, all you need to do is call the static "encryptWithAES" and
"decryptWithAES" methods with a key you choose for encryption.
To encrypt and decrypt the given text with AES-256, all you need to do is call the static **"encryptWithAES"** and
**"decryptWithAES"** methods with a key you choose for encryption.

```cpp
#include "libcpp-crypto.hpp"
Expand Down Expand Up @@ -79,9 +79,9 @@ int main() {

## How to handle Exceptions?

There are two main Exceptions you may encounter when using the library. The first one is the "InvalidKeyException"
There are two main Exceptions you may encounter when using the library. The first one is the **"InvalidKeyException"**
you will receive if the encryption key of the text you want to decrypt is incorrect, and the second one is the
"CorruptedTextException" you will receive if the text you want to decrypt is invalid.
**"CorruptedTextException"** you will receive if the text you want to decrypt is invalid.

The code below shows you how to catch the Exception thrown in case of an invalid encryption key.

Expand Down

0 comments on commit dbcc7b7

Please sign in to comment.