From 860792f1f3ead7d7509ea652eaabdcbb8f329cc5 Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Sat, 21 Mar 2015 07:16:49 +0100 Subject: Update untracked file --- Untracked/Doxygen/main.cpp | 129 --------------------------------------------- 1 file changed, 129 deletions(-) delete mode 100644 Untracked/Doxygen/main.cpp (limited to 'Untracked/Doxygen/main.cpp') diff --git a/Untracked/Doxygen/main.cpp b/Untracked/Doxygen/main.cpp deleted file mode 100644 index 92d033c..0000000 --- a/Untracked/Doxygen/main.cpp +++ /dev/null @@ -1,129 +0,0 @@ -/** - * @file main.cpp - * @brief Entry point - * @author manzerbredes - * @version Prototype - * @date 8 Mars 2015 - * - * Entry point of the application. - * - */ - - - -//----- std ----- - -#include -#include - -//----- class ----- -#include "CryptClass/AESCrypt.hpp" - -//----- Prototype ----- -void aff(std::string chaine); - - - - #include - #include - #include - #include - #include - #include -using namespace xercesc; - -/** - * @fn int main(int argc, char *argv[]) - * @author manzerbredes - * @brief main function - * @param argc contain *argv[] length - * @param *argv[] contain the arguments list - * @return Return code, an int. - */ -int main(int argc, char *argv[]){ - - try { - XMLPlatformUtils::Initialize(); - } - catch (const XMLException& toCatch) { - // Do your failure processing here - return 1; - } - - std::string xml="\n\ - !:!!;:!:;]]>\ - \ - "; - - XercesDOMParser *parser = new XercesDOMParser(); - MemBufInputSource myxml_buf((const XMLByte*)xml.c_str(), xml.size(), "dummy",false); - parser->parse(myxml_buf); - - DOMDocument* xmlDoc = parser->getDocument(); - DOMElement* root=xmlDoc->getDocumentElement(); - - DOMNodeList* children = root->getChildNodes(); - const XMLSize_t nodeCount = children->getLength(); - - - - for(int i=0;iitem(i); - char* valeur = XMLString::transcode(ne->getTextContent()); - - std::string nom(valeur); - std::cout << nom; - - } - - - - - // Do your actual work with Xerces-C++ here. - - //XMLPlatformUtils::Terminate(); - - - - - - - /*HASHCrypt hash= HASHCrypt(); - - byte code[16]; - - hash.getMD5_128("Phrase de test !", code, sizeof(code)); - - for(int i=0; i<16;i++){ - std::cout << code[i]; - } - */ - - - /*AESCrypt cryptage= AESCrypt(); - std::string key="loic"; - std::string data(127,'A'); - - std::cout << data << std::endl; - - std::string dataE=cryptage.encrypt(key, data); - - std::cout << std::endl <