This commit is contained in:
Václav Šmejkal 2022-04-07 17:30:56 +02:00
commit 2c6960884e
2 changed files with 5 additions and 3 deletions

View File

@ -16,6 +16,8 @@ This project is made 'like a library', so compiling is useless... :)
! DO NOT CLONE THIS REPOSITORY, USE [RELEASES](https://github.com/ENDev-WHY2/WHY2-Encryption-System/releases) INSTEAD > releases, that have `(C)` in the name < !
Run `configure.sh` and you'll be good to go.
To **encrypt** text, use function `encryptText()` from file `include/encrypter.h`.
To **decrypt** text, use function `decryptText()` from file `include/decrypter.h`.

View File

@ -5,9 +5,9 @@ DISTRO=$(lsb_release -is)
# Get COMMAND
if [[ $DISTRO == "Arch" ]]; then
COMMAND="sudo pacman -S --needed json-c"
COMMAND="sudo pacman -S --needed json-c && sudo pacman -S --needed curl"
elif [[ $DISTRO == "Ubuntu" ]] || [[ $DISTRO == "Debian" ]]; then
COMMAND="sudo apt install libjson-c3"
COMMAND="sudo apt install libjson-c3 && sudo apt install curl"
else
# 'Unsupported' distro
echo "It seems you are using unsupported distribution... Don't worry, just install https://github.com/json-c/json-c and you'll be fine."