- checkout repo
$ git clone ...
- jump into project directory
$ cd pocoLibExamples
- fetch dependencies using conan (option --build=missing says to conan to compile dependencies in case bin not found). Another useful flag is to set the profile using the
-pr <profile>
flag which points to profiles containing specific compilers in the system.
$ conan install ./ -if ./build --build=missing
- compile
i.$ cmake -G "Unix Makefiles" ./ -B./build
ii.$ cd build && make
Run binary with options:
poco_lib enc <publicKeyPath> <bin/hex/b64> <content>
poco_lib dec <privKeyPath> <pwd> <bin/hex/b64> <content>
poco_lib sign <MD5/SHA1/SHA256/SHA512> <private_key_file> <pwd> <bin/hex/b64> <content>
poco_lib verify <MD5/SHA1/SHA256/SHA512> <public_key_file_path> <signature> <signFormat:bin/hex/b64> <content>
poco_lib hash <MD5/SHA1/SHA256/SHA512> <bin/hex/b64> <content>
The code has an embedded profiler, thanks to Yan Chernikov for the profiler video. To use the profiler, whenever executed in debug mode a file results.json
will be dumped in the directory of execution. using chrome browser you can navigate to its embedded tracer on the following address and load the json file to have a visual representation for the tracer.
$ docker build . -t pocolibexamples