Commit 72413c8b authored by Håkon Harnes's avatar Håkon Harnes
parents 7695519a 6945a258
22 serialization::archive 16 0 0 0 0 53 /home/hakon/programming/security/Assignment 06/Task a 59 /home/hakon/programming/security/Assignment 06/Task a/build 0 0 106 0 0 0 1 # 1 1 1 2 18446744073709551615 7 include 1 2 1 9 18446744073709551615 15 "Decryptor.hpp" 1 10 1 25 18446744073709551615 3 std 3 1 3 4 0 2 :: 3 4 3 6 1 6 string 3 6 3 12 2 15 decryptPassword 3 13 3 28 1 1 ( 3 28 3 29 1 3 int 3 29 3 32 18446744073709551615 1 n 3 33 3 34 3 1 , 3 34 3 35 1 3 std 3 36 3 39 0 2 :: 3 39 3 41 18446744073709551615 6 string 3 41 3 47 2 8 password 3 48 3 56 4 1 ) 3 56 3 57 1 1 ; 3 57 3 58 18446744073709551615 3 int 5 1 5 4 18446744073709551615 4 main 5 5 5 9 5 1 ( 5 9 5 10 5 1 ) 5 10 5 11 5 1 { 5 12 5 13 18446744073709551615 5 const 6 3 6 8 18446744073709551615 3 std 6 9 6 12 0 2 :: 6 12 6 14 18446744073709551615 6 string 6 14 6 20 2 3 key 6 21 6 24 6 1 = 6 25 6 26 18446744073709551615 42 "ab29d7b5c589e18b52261ecba1d3a7e7cbf212c6" 6 27 6 69 18446744073709551615 1 ; 6 69 6 70 18446744073709551615 5 const 7 3 7 8 18446744073709551615 3 std 7 9 7 12 0 2 :: 7 12 7 14 18446744073709551615 6 string 7 14 7 20 2 4 salt 7 21 7 25 7 1 = 7 26 7 27 18446744073709551615 16 "Saltet til Ola" 7 28 7 44 18446744073709551615 1 ; 7 44 7 45 18446744073709551615 5 const 9 3 9 8 18446744073709551615 3 int 9 9 9 12 18446744073709551615 10 iterations 9 13 9 23 8 1 = 9 24 9 25 18446744073709551615 4 2048 9 26 9 30 18446744073709551615 1 ; 9 30 9 31 18446744073709551615 5 const 10 3 10 8 18446744073709551615 3 int 10 9 10 12 18446744073709551615 6 maxLen 10 13 10 19 9 1 = 10 20 10 21 18446744073709551615 2 10 10 22 10 24 18446744073709551615 1 ; 10 24 10 25 18446744073709551615 9 Decryptor 12 3 12 12 10 9 decryptor 12 13 12 22 11 1 ( 12 22 12 23 10 3 key 12 23 12 26 6 1 , 12 26 12 27 10 4 salt 12 28 12 32 7 1 , 12 32 12 33 10 10 iterations 12 34 12 44 8 1 , 12 44 12 45 10 6 maxLen 12 46 12 52 9 1 ) 12 52 12 53 10 1 ; 12 53 12 54 18446744073709551615 3 std 13 3 13 6 0 2 :: 13 6 13 8 18446744073709551615 6 string 13 8 13 14 2 8 password 13 15 13 23 12 1 = 13 24 13 25 18446744073709551615 9 decryptor 13 26 13 35 11 1 . 13 35 13 36 13 15 decryptPassword 13 36 13 51 13 1 ( 13 51 13 52 13 1 ) 13 52 13 53 13 1 ; 13 53 13 54 18446744073709551615 2 if 15 3 15 5 18446744073709551615 1 ( 15 6 15 7 18446744073709551615 8 password 15 7 15 15 12 2 != 15 16 15 18 14 2 "" 15 19 15 21 18446744073709551615 1 ) 15 21 15 22 18446744073709551615 3 std 16 5 16 8 0 2 :: 16 8 16 10 18446744073709551615 4 cout 16 10 16 14 15 2 << 16 15 16 17 16 20 "\nPASSWORD FOUND: " 16 18 16 38 18446744073709551615 2 << 16 39 16 41 16 8 password 16 42 16 50 12 2 << 16 51 16 53 16 4 "\n" 16 54 16 58 18446744073709551615 2 << 17 15 17 17 17 3 std 17 18 17 21 0 2 :: 17 21 17 23 18 4 endl 17 23 17 27 18 1 ; 17 27 17 28 18446744073709551615 4 else 18 3 18 7 18446744073709551615 3 std 19 5 19 8 0 2 :: 19 8 19 10 18446744073709551615 4 cout 19 10 19 14 15 2 << 19 15 19 17 16 33 "\nUNABLE TO DECRYPT PASSWORD!\n" 19 18 19 51 18446744073709551615 2 << 20 15 20 17 17 3 std 20 18 20 21 0 2 :: 20 21 20 23 18 4 endl 20 23 20 27 18 1 ; 20 27 20 28 18446744073709551615 216 /*
-- OUTPUT --
146a0ad2711640cb8cb2e40b1c27435c2e8ba3c3 - QwC
975f6b1a139b3be77ca83be02ce2946beb877be4 - QwD
ab29d7b5c589e18b52261ecba1d3a7e7cbf212c6 - QwE
PASSWORD FOUND: QwE
*/ 22 3 29 6 18446744073709551615 1 } 30 1 30 2 18446744073709551615 0 0 19 0 0 0 22 0 0 1 2 0 3 std 8 1 2 0 15 decryptPassword 20 1 2 0 10 string:std 10 1 2 0 67 3:33:/home/hakon/programming/security/Assignment 06/Task a/main.cpp 10 1 2 0 67 3:48:/home/hakon/programming/security/Assignment 06/Task a/main.cpp 8 1 2 0 4 main 9 1 2 0 67 6:21:/home/hakon/programming/security/Assignment 06/Task a/main.cpp 9 1 2 0 67 7:21:/home/hakon/programming/security/Assignment 06/Task a/main.cpp 9 1 2 0 67 9:13:/home/hakon/programming/security/Assignment 06/Task a/main.cpp 9 1 2 0 68 10:13:/home/hakon/programming/security/Assignment 06/Task a/main.cpp 4 1 2 0 9 Decryptor 9 1 2 0 68 12:13:/home/hakon/programming/security/Assignment 06/Task a/main.cpp 9 1 2 0 68 13:15:/home/hakon/programming/security/Assignment 06/Task a/main.cpp 21 1 2 0 25 decryptPassword:Decryptor 8 1 2 0 14 operator!=:std 9 1 2 0 8 cout:std 8 1 2 0 12 operator:std 21 1 2 0 26 operator:basic_ostream:std 8 1 2 0 8 endl:std 0 0 2 0 0 0 67 /home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 1600345515 62 /home/hakon/programming/security/Assignment 06/Task a/main.cpp 1600345510
\ No newline at end of file
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.13
# The generator used is:
set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles")
# The top level Makefile was generated from the following files:
set(CMAKE_MAKEFILE_DEPENDS
"CMakeCache.txt"
"../CMakeLists.txt"
"CMakeFiles/3.13.4/CMakeCCompiler.cmake"
"CMakeFiles/3.13.4/CMakeCXXCompiler.cmake"
"CMakeFiles/3.13.4/CMakeSystem.cmake"
"CMakeFiles/feature_tests.c"
"CMakeFiles/feature_tests.cxx"
"/usr/share/cmake-3.13/Modules/CMakeCCompiler.cmake.in"
"/usr/share/cmake-3.13/Modules/CMakeCCompilerABI.c"
"/usr/share/cmake-3.13/Modules/CMakeCInformation.cmake"
"/usr/share/cmake-3.13/Modules/CMakeCXXCompiler.cmake.in"
"/usr/share/cmake-3.13/Modules/CMakeCXXCompilerABI.cpp"
"/usr/share/cmake-3.13/Modules/CMakeCXXInformation.cmake"
"/usr/share/cmake-3.13/Modules/CMakeCommonLanguageInclude.cmake"
"/usr/share/cmake-3.13/Modules/CMakeCompilerIdDetection.cmake"
"/usr/share/cmake-3.13/Modules/CMakeDetermineCCompiler.cmake"
"/usr/share/cmake-3.13/Modules/CMakeDetermineCXXCompiler.cmake"
"/usr/share/cmake-3.13/Modules/CMakeDetermineCompileFeatures.cmake"
"/usr/share/cmake-3.13/Modules/CMakeDetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/CMakeDetermineCompilerABI.cmake"
"/usr/share/cmake-3.13/Modules/CMakeDetermineCompilerId.cmake"
"/usr/share/cmake-3.13/Modules/CMakeDetermineSystem.cmake"
"/usr/share/cmake-3.13/Modules/CMakeFindBinUtils.cmake"
"/usr/share/cmake-3.13/Modules/CMakeGenericSystem.cmake"
"/usr/share/cmake-3.13/Modules/CMakeInitializeConfigs.cmake"
"/usr/share/cmake-3.13/Modules/CMakeLanguageInformation.cmake"
"/usr/share/cmake-3.13/Modules/CMakeParseImplicitLinkInfo.cmake"
"/usr/share/cmake-3.13/Modules/CMakeSystem.cmake.in"
"/usr/share/cmake-3.13/Modules/CMakeSystemSpecificInformation.cmake"
"/usr/share/cmake-3.13/Modules/CMakeSystemSpecificInitialize.cmake"
"/usr/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake"
"/usr/share/cmake-3.13/Modules/CMakeTestCXXCompiler.cmake"
"/usr/share/cmake-3.13/Modules/CMakeTestCompilerCommon.cmake"
"/usr/share/cmake-3.13/Modules/CMakeUnixFindMake.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/ADSP-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/ARMCC-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/AppleClang-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/Borland-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/Bruce-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/Clang-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/Compaq-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/Cray-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/Embarcadero-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/Fujitsu-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/GHS-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/GNU-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/GNU-C-FeatureTests.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/GNU-C.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/GNU-CXX-FeatureTests.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/GNU-CXX.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/GNU-FindBinUtils.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/GNU.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/HP-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/HP-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/IAR-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/Intel-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/MIPSpro-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/MSVC-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/NVIDIA-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/PGI-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/PathScale-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/SCO-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/SDCC-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/SunPro-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/TI-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/Watcom-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/XL-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/XL-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/zOS-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake"
"/usr/share/cmake-3.13/Modules/FindOpenSSL.cmake"
"/usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake"
"/usr/share/cmake-3.13/Modules/FindPackageMessage.cmake"
"/usr/share/cmake-3.13/Modules/FindPkgConfig.cmake"
"/usr/share/cmake-3.13/Modules/Internal/FeatureTesting.cmake"
"/usr/share/cmake-3.13/Modules/Platform/Linux-Determine-CXX.cmake"
"/usr/share/cmake-3.13/Modules/Platform/Linux-GNU-C.cmake"
"/usr/share/cmake-3.13/Modules/Platform/Linux-GNU-CXX.cmake"
"/usr/share/cmake-3.13/Modules/Platform/Linux-GNU.cmake"
"/usr/share/cmake-3.13/Modules/Platform/Linux.cmake"
"/usr/share/cmake-3.13/Modules/Platform/UnixPaths.cmake"
)
# The corresponding makefile is:
set(CMAKE_MAKEFILE_OUTPUTS
"Makefile"
"CMakeFiles/cmake.check_cache"
)
# Byproducts of CMake generate step:
set(CMAKE_MAKEFILE_PRODUCTS
"CMakeFiles/3.13.4/CMakeSystem.cmake"
"CMakeFiles/3.13.4/CMakeCCompiler.cmake"
"CMakeFiles/3.13.4/CMakeCXXCompiler.cmake"
"CMakeFiles/3.13.4/CMakeCCompiler.cmake"
"CMakeFiles/3.13.4/CMakeCXXCompiler.cmake"
"CMakeFiles/CMakeDirectoryInformation.cmake"
)
# Dependency information for all targets:
set(CMAKE_DEPEND_INFO_FILES
"CMakeFiles/main.dir/DependInfo.cmake"
)
/home/hakon/programming/security/Assignment 06/Task a/build/CMakeFiles/rebuild_cache.dir
/home/hakon/programming/security/Assignment 06/Task a/build/CMakeFiles/main.dir
/home/hakon/programming/security/Assignment 06/Task a/build/CMakeFiles/edit_cache.dir
const char features[] = {"\n"
"C_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304
"1"
#else
"0"
#endif
"c_function_prototypes\n"
"C_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
"1"
#else
"0"
#endif
"c_restrict\n"
"C_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L
"1"
#else
"0"
#endif
"c_static_assert\n"
"C_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
"1"
#else
"0"
#endif
"c_variadic_macros\n"
};
int main(int argc, char** argv) { (void)argv; return features[argc]; }
#IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">])
#IncludeRegexScan: ^.*$
#IncludeRegexComplain: ^$
#IncludeRegexTransform:
/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp
iomanip
-
iostream
-
openssl/evp.h
-
openssl/sha.h
-
string
-
/home/hakon/programming/security/Assignment 06/Task a/main.cpp
Decryptor.hpp
/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.13
CMakeFiles/main.dir/main.cpp.o
/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp
/home/hakon/programming/security/Assignment 06/Task a/main.cpp
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.13
CMakeFiles/main.dir/main.cpp.o: ../Decryptor.hpp
CMakeFiles/main.dir/main.cpp.o: ../main.cpp
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.13
# compile CXX with /usr/bin/c++
CXX_FLAGS = -std=c++1y -Wall -Wextra
CXX_DEFINES =
CXX_INCLUDES =
/usr/bin/c++ -std=c++1y -Wall -Wextra -rdynamic CMakeFiles/main.dir/main.cpp.o -o main -lcrypto
[
{
"directory": "/home/hakon/programming/security/Assignment 06/Task a/build",
"command": "/usr/bin/c++ -std=c++1y -Wall -Wextra -o CMakeFiles/main.dir/main.cpp.o -c \"/home/hakon/programming/security/Assignment 06/Task a/main.cpp\"",
"file": "/home/hakon/programming/security/Assignment 06/Task a/main.cpp"
}
]
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment