The QryptSecurity SDK is intended to be run on an Ubuntu 22.04 system with an amd64 architecture, either natively or using an emulated platform.
A standardized Dockerfile is provided in ./devcontainer that installs dependencies and builds the quickstarts.
If a VSCode editor is being used, the containerized environment can be created using the "Dev Containers" extension.
Without VSCode, create the Docker container manually:
docker image build -t qrypt-quickstarts ./.devcontainerdocker container run -d --name qrypt-quickstarts qrypt-quickstarts tail -f /dev/nulldocker exec -it qrypt-quickstarts /bin/bashgit clone https://github.com/QryptInc/qrypt-security-quickstarts-cpp.gitcd qrypt-security-quickstarts-cpp./.devcontainer/setup.sh./qrypt --help
The following commands assume an Ubuntu 22.04 system with an amd64 architecture configured with OpenSSL, CURL, CMake, and g++.
Prerequisites:
- Install the recommended packages:
apt-get -y install git cmake gcc g++ xxd libssl-dev libgtest-dev libcurl4-openssl-dev openssh-server ufw sshpass curl jq - Clone the quickstarts repo.
Steps:
- Create a Qrypt account for free.
- On the Qrypt portal, download the Qrypt SDK from "Products > Qrypt SDK" and save the .tgz to the repository root.
- (Optional) On the Qrypt portal, register a personal access token for keygen.
tar -zxvf qrypt-security-0.11.23-ubuntu.tgz --strip-components=1 -C QryptSecuritycmake . -B buildcmake --build build./qrypt --help
If googletest is installed on your system, you may add -DENABLE_TESTS=ON to your cmake command to enable an automated validation suite which can be run with ./qrypt test:
cmake -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTS=ONcmake --build build --config Release
