made readme more organized

This commit is contained in:
Václav Šmejkal 2022-04-29 18:06:01 +02:00
parent d11a03b62a
commit 7dae19b9af

View File

@ -27,15 +27,18 @@ Jump to [examples](#examples) if you're not sure, how to use.
- Encryption:
```c
//FIRST VARIANT
char *yourText = encryptText("Put here text, you want encrypt...", "tzXlZGxkhfYOvRthqokDrmGFyDMylgmeIlrJTpVAwuqrLjABXM"); //The second thing is Your **key**. (The key must be at least 50 characters long!)
char *yourText = encryptText("Put here text, you want encrypt...", "tzXlZGxkhfYOvRthqokDrmGFyDMylgmeIlrJTpVAwuqrLjABXM");
//The second thing is Your **key**. (The key must be at least 50 characters long!)
//SECOND VARIANT
char *yourText = encryptText("Put here text, you want encrypt...", NULL); //See? You don't have to use Your key. Program will automatically generate one for you. It will be printed out, so save it somewhere.
char *yourText = encryptText("Put here text, you want encrypt...", NULL);
//See? You don't have to use Your key. Program will automatically generate one for you. It will be printed out, so save it somewhere.
```
- Decryption:
```c
char *yourText = decryptText("158.-83.9388.-14.57.8419.113.-98.10576", "tzXlZGxkhfYOvRthqokDrmGFyDMylgmeIlrJTpVAwuqrLjABXM"); //First parameter is Your encrypted text, the second is key you want to use for decryption it.
char *yourText = decryptText("158.-83.9388.-14.57.8419.113.-98.10576", "tzXlZGxkhfYOvRthqokDrmGFyDMylgmeIlrJTpVAwuqrLjABXM");
//First parameter is Your encrypted text, the second is key you want to use for decryption it.
```
## Example programs