Decentralised peer to peer messaging
on Ubuntu, libssl-dev is required to build. For other systems, find a similar package, (openssl/rsa.h)
Compile with: g++ peer.cpp crypto.cpp -lcrypto
Use openssl to generate key pair for encrypted communication:
cd ~/.ssh
openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -outform PEM -pubout -out public.pem