#include "pip.h" #include "picrypt.h" using namespace PICoutManipulators; void usage() { piCout << Bold << "PIP Cloud dispatcher"; piCout << Cyan << "Version" << Bold << PIPVersion() << NewLine; piCout << Green << Bold << "Usage:" << Default << "\"picloud\"" << NewLine; piCout << Green << Bold << "Details:"; piCout << "-h --help " << Green << "- display this message and exit"; //piCout << "-g --genhash " << Green << "- generate hash from string"; //piCout << "-t --text " << Green << "- output in text base64"; //piCout << "-o --out " << Green << "- write out to file "; //piCout << "-c --crypt " << Green << "- crypt file using secret or or "; //piCout << "-d --decrypt " << Green << "- decrypt file using secret or or "; //piCout << "-p --pass " << Green << "- use secret from passphrase "; //piCout << "-s --secret " << Green << "- use secret from hash "; //piCout << "-k --key " << Green << "- use secret from binary key_file "; //piCout << "-x --hex [] " << Green << "- use secret from hex hash or output in text hex"; //piCout << "-r --random " << Green << "- generate random secret key"; } int main (int argc, char * argv[]) { PICrypt::hash(""); PICLI cli(argc, argv); cli.addArgument("genhash", true); if (!(cli.hasArgument("genhash") || cli.hasArgument("crypt") || cli.hasArgument("decrypt") || cli.hasArgument("random")) || cli.hasArgument("help")) { usage(); return 0; } return 0; }