Skip to content
Snippets Groups Projects
Commit 72413c8b authored by Håkon Harnes's avatar Håkon Harnes
Browse files
parents 7695519a 6945a258
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 1549 deletions
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 447 0 0 0 1 # 1 1 1 2 18446744073709551615 6 pragma 1 2 1 8 18446744073709551615 4 once 1 9 1 13 18446744073709551615 1 # 2 1 2 2 18446744073709551615 7 include 2 2 2 9 18446744073709551615 1 < 2 10 2 11 18446744073709551615 7 iomanip 2 11 2 18 18446744073709551615 1 > 2 18 2 19 18446744073709551615 1 # 3 1 3 2 18446744073709551615 7 include 3 2 3 9 18446744073709551615 1 < 3 10 3 11 18446744073709551615 8 iostream 3 11 3 19 18446744073709551615 1 > 3 19 3 20 18446744073709551615 1 # 4 1 4 2 18446744073709551615 7 include 4 2 4 9 18446744073709551615 1 < 4 10 4 11 18446744073709551615 7 openssl 4 11 4 18 18446744073709551615 1 / 4 18 4 19 18446744073709551615 3 evp 4 19 4 22 18446744073709551615 1 . 4 22 4 23 18446744073709551615 1 h 4 23 4 24 18446744073709551615 1 > 4 24 4 25 18446744073709551615 1 # 5 1 5 2 18446744073709551615 7 include 5 2 5 9 18446744073709551615 1 < 5 10 5 11 18446744073709551615 7 openssl 5 11 5 18 18446744073709551615 1 / 5 18 5 19 18446744073709551615 3 sha 5 19 5 22 18446744073709551615 1 . 5 22 5 23 18446744073709551615 1 h 5 23 5 24 18446744073709551615 1 > 5 24 5 25 18446744073709551615 1 # 6 1 6 2 18446744073709551615 7 include 6 2 6 9 18446744073709551615 1 < 6 10 6 11 18446744073709551615 6 string 6 11 6 17 18446744073709551615 1 > 6 17 6 18 18446744073709551615 5 class 8 1 8 6 18446744073709551615 9 Decryptor 8 7 8 16 0 1 { 8 17 8 18 18446744073709551615 5 const 9 3 9 8 18446744073709551615 3 std 9 9 9 12 0 2 :: 9 12 9 14 18446744073709551615 6 string 9 14 9 20 0 8 alphabet 9 21 9 29 1 1 = 9 30 9 31 18446744073709551615 54 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" 9 32 9 86 18446744073709551615 1 ; 9 86 9 87 18446744073709551615 3 std 11 3 11 6 0 2 :: 11 6 11 8 18446744073709551615 6 string 11 8 11 14 0 3 key 11 15 11 18 2 1 ; 11 18 11 19 18446744073709551615 3 std 12 3 12 6 0 2 :: 12 6 12 8 18446744073709551615 6 string 12 8 12 14 0 4 salt 12 15 12 19 3 1 ; 12 19 12 20 18446744073709551615 3 int 13 3 13 6 18446744073709551615 10 iterations 13 7 13 17 4 1 ; 13 17 13 18 18446744073709551615 3 int 14 3 14 6 18446744073709551615 6 maxLen 14 7 14 13 5 1 ; 14 13 14 14 18446744073709551615 3 int 15 3 15 6 18446744073709551615 6 keyLen 15 7 15 13 6 1 ; 15 13 15 14 18446744073709551615 6 public 17 1 17 7 18446744073709551615 1 : 17 7 17 8 18446744073709551615 9 Decryptor 18 3 18 12 0 1 ( 18 12 18 13 0 3 std 18 13 18 16 7 2 :: 18 16 18 18 18446744073709551615 6 string 18 18 18 24 8 1 k 18 25 18 26 9 1 , 18 26 18 27 0 3 std 18 28 18 31 7 2 :: 18 31 18 33 18446744073709551615 6 string 18 33 18 39 8 1 s 18 40 18 41 10 1 , 18 41 18 42 0 3 int 18 43 18 46 18446744073709551615 1 i 18 47 18 48 11 1 , 18 48 18 49 0 3 int 18 50 18 53 18446744073709551615 1 m 18 54 18 55 12 1 ) 18 55 18 56 0 1 { 18 57 18 58 18446744073709551615 3 key 19 5 19 8 2 1 = 19 9 19 10 13 1 k 19 11 19 12 9 1 ; 19 12 19 13 18446744073709551615 4 salt 20 5 20 9 3 1 = 20 10 20 11 13 1 s 20 12 20 13 10 1 ; 20 13 20 14 18446744073709551615 10 iterations 21 5 21 15 4 1 = 21 16 21 17 18446744073709551615 1 i 21 18 21 19 11 1 ; 21 19 21 20 18446744073709551615 6 maxLen 22 5 22 11 5 1 = 22 12 22 13 18446744073709551615 1 m 22 14 22 15 12 1 ; 22 15 22 16 18446744073709551615 6 keyLen 23 5 23 11 6 1 = 23 12 23 13 18446744073709551615 1 k 23 14 23 15 9 1 . 23 15 23 16 14 6 length 23 16 23 22 14 1 ( 23 22 23 23 14 1 ) 23 23 23 24 14 1 / 23 25 23 26 18446744073709551615 1 2 23 27 23 28 18446744073709551615 1 ; 23 28 23 29 18446744073709551615 1 } 24 3 24 4 18446744073709551615 59 // Decrypts the password, returns empty string if not found 26 3 26 62 18446744073709551615 3 std 27 3 27 6 7 2 :: 27 6 27 8 15 6 string 27 8 27 14 8 15 decryptPassword 27 15 27 30 15 1 ( 27 30 27 31 15 1 ) 27 31 27 32 15 1 { 27 33 27 34 18446744073709551615 3 for 28 5 28 8 18446744073709551615 1 ( 28 9 28 10 18446744073709551615 3 int 28 10 28 13 18446744073709551615 1 i 28 14 28 15 16 1 = 28 16 28 17 18446744073709551615 1 1 28 18 28 19 18446744073709551615 1 ; 28 19 28 20 18446744073709551615 1 i 28 21 28 22 16 2 <= 28 23 28 25 18446744073709551615 6 maxLen 28 26 28 32 5 1 ; 28 32 28 33 18446744073709551615 1 i 28 34 28 35 16 2 ++ 28 35 28 37 18446744073709551615 1 ) 28 37 28 38 18446744073709551615 1 { 28 39 28 40 18446744073709551615 3 std 29 7 29 10 7 2 :: 29 10 29 12 18446744073709551615 6 string 29 12 29 18 8 8 password 29 19 29 27 17 1 = 29 28 29 29 18446744073709551615 8 calcHash 29 30 29 38 18 1 ( 29 38 29 39 18 1 i 29 39 29 40 16 1 , 29 40 29 41 18 2 "" 29 42 29 44 18446744073709551615 1 ) 29 44 29 45 18 1 ; 29 45 29 46 18446744073709551615 2 if 30 7 30 9 18446744073709551615 1 ( 30 10 30 11 18446744073709551615 8 password 30 11 30 19 17 2 != 30 20 30 22 19 2 "" 30 23 30 25 18446744073709551615 1 ) 30 25 30 26 18446744073709551615 6 return 31 9 31 15 18446744073709551615 8 password 31 16 31 24 17 1 ; 31 24 31 25 18446744073709551615 1 } 32 5 32 6 18446744073709551615 6 return 34 5 34 11 18446744073709551615 2 "" 34 12 34 14 18446744073709551615 1 ; 34 14 34 15 18446744073709551615 1 } 35 3 35 4 18446744073709551615 7 private 37 1 37 8 18446744073709551615 1 : 37 8 37 9 18446744073709551615 74 // Recursive function to calculate hash (equivalent to n nested for loops) 38 3 38 77 18446744073709551615 3 std 39 3 39 6 7 2 :: 39 6 39 8 18 6 string 39 8 39 14 8 8 calcHash 39 15 39 23 18 1 ( 39 23 39 24 18 3 int 39 24 39 27 18446744073709551615 1 n 39 28 39 29 20 1 , 39 29 39 30 18 3 std 39 31 39 34 7 2 :: 39 34 39 36 18446744073709551615 6 string 39 36 39 42 8 8 password 39 43 39 51 21 1 ) 39 51 39 52 18 1 { 39 53 39 54 18446744073709551615 3 for 40 5 40 8 18446744073709551615 1 ( 40 9 40 10 18446744073709551615 4 char 40 10 40 14 18446744073709551615 1 c 40 15 40 16 22 1 : 40 17 40 18 23 8 alphabet 40 19 40 27 1 1 ) 40 27 40 28 18446744073709551615 1 { 40 29 40 30 18446744073709551615 3 std 41 7 41 10 7 2 :: 41 10 41 12 18446744073709551615 6 string 41 12 41 18 8 3 tmp 41 19 41 22 24 1 = 41 23 41 24 18446744073709551615 8 password 41 25 41 33 21 1 + 41 34 41 35 25 1 c 41 36 41 37 22 1 ; 41 37 41 38 18446744073709551615 2 if 43 7 43 9 18446744073709551615 1 ( 43 10 43 11 18446744073709551615 1 n 43 11 43 12 20 1 > 43 13 43 14 18446744073709551615 1 1 43 15 43 16 18446744073709551615 1 ) 43 16 43 17 18446744073709551615 1 { 43 18 43 19 18446744073709551615 3 std 44 9 44 12 7 2 :: 44 12 44 14 18446744073709551615 6 string 44 14 44 20 8 10 decryption 44 21 44 31 26 1 = 44 32 44 33 18446744073709551615 8 calcHash 44 34 44 42 18 1 ( 44 42 44 43 18 1 n 44 43 44 44 20 1 - 44 45 44 46 18446744073709551615 1 1 44 47 44 48 18446744073709551615 1 , 44 48 44 49 18 3 tmp 44 50 44 53 24 1 ) 44 53 44 54 18 1 ; 44 54 44 55 18446744073709551615 2 if 45 9 45 11 18446744073709551615 1 ( 45 12 45 13 18446744073709551615 10 decryption 45 13 45 23 26 2 != 45 24 45 26 19 2 "" 45 27 45 29 18446744073709551615 1 ) 45 29 45 30 18446744073709551615 6 return 46 11 46 17 18446744073709551615 10 decryption 46 18 46 28 26 1 ; 46 28 46 29 18446744073709551615 1 } 47 7 47 8 18446744073709551615 4 else 47 9 47 13 18446744073709551615 1 { 47 14 47 15 18446744073709551615 3 std 48 9 48 12 7 2 :: 48 12 48 14 18446744073709551615 6 string 48 14 48 20 8 4 hash 48 21 48 25 27 1 = 48 26 48 27 18446744073709551615 6 PBKDF2 48 28 48 34 28 1 ( 48 34 48 35 28 3 tmp 48 35 48 38 24 1 , 48 38 48 39 28 4 salt 48 40 48 44 3 1 , 48 44 48 45 28 10 iterations 48 46 48 56 4 1 , 48 56 48 57 28 6 keyLen 48 58 48 64 6 1 ) 48 64 48 65 28 1 ; 48 65 48 66 18446744073709551615 3 std 49 9 49 12 7 2 :: 49 12 49 14 18446744073709551615 4 cout 49 14 49 18 29 2 << 49 19 49 21 30 4 hash 49 22 49 26 27 2 << 49 27 49 29 30 5 " - " 49 30 49 35 18446744073709551615 2 << 49 36 49 38 30 3 tmp 49 39 49 42 24 2 << 49 43 49 45 31 3 std 49 46 49 49 7 2 :: 49 49 49 51 32 4 endl 49 51 49 55 32 1 ; 49 55 49 56 18446744073709551615 2 if 51 9 51 11 18446744073709551615 1 ( 51 12 51 13 18446744073709551615 4 hash 51 13 51 17 27 2 == 51 18 51 20 33 3 key 51 21 51 24 2 1 ) 51 24 51 25 18446744073709551615 1 { 51 26 51 27 18446744073709551615 6 return 52 11 52 17 18446744073709551615 3 tmp 52 18 52 21 24 1 ; 52 21 52 22 18446744073709551615 1 } 53 9 53 10 18446744073709551615 1 } 54 7 54 8 18446744073709551615 1 } 55 5 55 6 18446744073709551615 6 return 57 5 57 11 18446744073709551615 2 "" 57 12 57 14 18446744073709551615 1 ; 57 14 57 15 18446744073709551615 1 } 58 3 58 4 18446744073709551615 50 // Returns a hex string from bytes in input string 60 3 60 53 18446744073709551615 3 std 61 3 61 6 7 2 :: 61 6 61 8 34 6 string 61 8 61 14 8 3 hex 61 15 61 18 34 1 ( 61 18 61 19 34 5 const 61 19 61 24 18446744073709551615 3 std 61 25 61 28 7 2 :: 61 28 61 30 18446744073709551615 6 string 61 30 61 36 8 1 & 61 37 61 38 18446744073709551615 5 input 61 38 61 43 35 1 ) 61 43 61 44 34 1 { 61 45 61 46 18446744073709551615 3 std 62 5 62 8 7 2 :: 62 8 62 10 18446744073709551615 12 stringstream 62 10 62 22 36 10 hex_stream 62 23 62 33 37 1 ; 62 33 62 34 18446744073709551615 10 hex_stream 63 5 63 15 37 2 << 63 16 63 18 31 3 std 63 19 63 22 7 2 :: 63 22 63 24 38 3 hex 63 24 63 27 38 2 << 63 28 63 30 31 3 std 63 31 63 34 7 2 :: 63 34 63 36 39 8 internal 63 36 63 44 39 2 << 63 45 63 47 30 3 std 63 48 63 51 7 2 :: 63 51 63 53 40 7 setfill 63 53 63 60 40 1 ( 63 60 63 61 40 3 '0' 63 61 63 64 18446744073709551615 1 ) 63 64 63 65 40 1 ; 63 65 63 66 18446744073709551615 3 for 64 5 64 8 18446744073709551615 1 ( 64 9 64 10 18446744073709551615 4 auto 64 10 64 14 18446744073709551615 1 & 64 15 64 16 18446744073709551615 4 byte 64 16 64 20 41 1 : 64 21 64 22 23 5 input 64 23 64 28 35 1 ) 64 28 64 29 18446744073709551615 10 hex_stream 65 7 65 17 37 2 << 65 18 65 20 30 3 std 65 21 65 24 7 2 :: 65 24 65 26 42 4 setw 65 26 65 30 42 1 ( 65 30 65 31 42 1 2 65 31 65 32 18446744073709551615 1 ) 65 32 65 33 42 2 << 65 34 65 36 31 1 ( 65 37 65 38 18446744073709551615 3 int 65 38 65 41 18446744073709551615 1 ) 65 41 65 42 18446744073709551615 1 ( 65 42 65 43 18446744073709551615 8 unsigned 65 43 65 51 18446744073709551615 4 char 65 52 65 56 18446744073709551615 1 ) 65 56 65 57 18446744073709551615 4 byte 65 57 65 61 41 1 ; 65 61 65 62 18446744073709551615 6 return 66 5 66 11 18446744073709551615 10 hex_stream 66 12 66 22 37 1 . 66 22 66 23 43 3 str 66 23 66 26 43 1 ( 66 26 66 27 43 1 ) 66 27 66 28 43 1 ; 66 28 66 29 18446744073709551615 1 } 67 3 67 4 18446744073709551615 64 // Returns the PBKDF2 (Password-Based Key Derivation Function 2) 69 3 69 67 18446744073709551615 3 std 70 3 70 6 7 2 :: 70 6 70 8 28 6 string 70 8 70 14 8 6 PBKDF2 70 15 70 21 28 1 ( 70 21 70 22 28 5 const 70 22 70 27 18446744073709551615 3 std 70 28 70 31 7 2 :: 70 31 70 33 18446744073709551615 6 string 70 33 70 39 8 1 & 70 40 70 41 18446744073709551615 8 password 70 41 70 49 44 1 , 70 49 70 50 28 5 const 70 51 70 56 18446744073709551615 3 std 70 57 70 60 7 2 :: 70 60 70 62 18446744073709551615 6 string 70 62 70 68 8 1 & 70 69 70 70 18446744073709551615 4 salt 70 70 70 74 45 1 , 70 74 70 75 28 3 int 70 76 70 79 18446744073709551615 10 iterations 70 80 70 90 46 1 , 70 90 70 91 28 3 int 70 92 70 95 18446744073709551615 6 keyLen 70 96 70 102 47 1 ) 70 102 70 103 28 1 { 70 104 70 105 18446744073709551615 3 std 71 5 71 8 7 2 :: 71 8 71 10 18446744073709551615 6 string 71 10 71 16 8 3 key 71 17 71 20 48 1 ; 71 20 71 21 18446744073709551615 3 key 72 5 72 8 48 1 . 72 8 72 9 49 6 resize 72 9 72 15 49 1 ( 72 15 72 16 49 6 keyLen 72 16 72 22 47 1 ) 72 22 72 23 49 1 ; 72 23 72 24 18446744073709551615 22 PKCS5_PBKDF2_HMAC_SHA1 74 5 74 27 50 1 ( 74 27 74 28 50 1 ( 74 28 74 29 18446744073709551615 5 const 74 29 74 34 18446744073709551615 4 char 74 35 74 39 18446744073709551615 1 * 74 40 74 41 18446744073709551615 1 ) 74 41 74 42 18446744073709551615 1 & 74 42 74 43 18446744073709551615 8 password 74 43 74 51 44 1 [ 74 51 74 52 51 1 0 74 52 74 53 18446744073709551615 1 ] 74 53 74 54 51 1 , 74 54 74 55 50 8 password 74 56 74 64 44 1 . 74 64 74 65 52 4 size 74 65 74 69 52 1 ( 74 69 74 70 52 1 ) 74 70 74 71 52 1 , 74 71 74 72 50 1 ( 74 73 74 74 18446744073709551615 5 const 74 74 74 79 18446744073709551615 8 unsigned 74 80 74 88 18446744073709551615 4 char 74 89 74 93 18446744073709551615 1 * 74 94 74 95 18446744073709551615 1 ) 74 95 74 96 18446744073709551615 1 & 74 96 74 97 18446744073709551615 4 salt 74 97 74 101 45 1 [ 74 101 74 102 51 1 0 74 102 74 103 18446744073709551615 1 ] 74 103 74 104 51 1 , 74 104 74 105 50 4 salt 74 106 74 110 45 1 . 74 110 74 111 52 4 size 74 111 74 115 52 1 ( 74 115 74 116 52 1 ) 74 116 74 117 52 1 , 74 117 74 118 50 10 iterations 74 119 74 129 46 1 , 74 129 74 130 50 6 keyLen 74 131 74 137 47 1 , 74 137 74 138 50 1 ( 74 139 74 140 18446744073709551615 8 unsigned 74 140 74 148 18446744073709551615 4 char 74 149 74 153 18446744073709551615 1 * 74 154 74 155 18446744073709551615 1 ) 74 155 74 156 18446744073709551615 1 & 74 156 74 157 18446744073709551615 3 key 74 157 74 160 48 1 [ 74 160 74 161 51 1 0 74 161 74 162 18446744073709551615 1 ] 74 162 74 163 51 1 ) 74 163 74 164 50 1 ; 74 164 74 165 18446744073709551615 6 return 76 5 76 11 18446744073709551615 3 hex 76 12 76 15 34 1 ( 76 15 76 16 34 3 key 76 16 76 19 48 1 ) 76 19 76 20 34 1 ; 76 20 76 21 18446744073709551615 1 } 77 3 77 4 18446744073709551615 1 } 78 1 78 2 18446744073709551615 0 0 53 0 0 0 4 0 0 1 2 0 9 Decryptor 6 1 2 0 18 alphabet:Decryptor 6 1 2 0 13 key:Decryptor 6 1 2 0 14 salt:Decryptor 6 1 2 0 20 iterations:Decryptor 6 1 2 0 16 maxLen:Decryptor 6 1 2 0 16 keyLen:Decryptor 22 1 2 0 3 std 20 1 2 0 10 string:std 10 1 2 0 73 18:25:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 10 1 2 0 73 18:40:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 10 1 2 0 73 18:47:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 10 1 2 0 73 18:54:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 21 1 2 0 34 operator=:basic_string:__cxx11:std 21 1 2 0 31 length:basic_string:__cxx11:std 21 1 2 0 25 decryptPassword:Decryptor 9 1 2 0 73 28:14:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 9 1 2 0 73 29:19:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 21 1 2 0 18 calcHash:Decryptor 8 1 2 0 14 operator!=:std 10 1 2 0 73 39:28:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 10 1 2 0 73 39:43:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 9 1 2 0 73 40:15:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 21 1 2 0 37 operator*:__normal_iterator:__gnu_cxx 9 1 2 0 73 41:19:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 8 1 2 0 13 operator+:std 9 1 2 0 73 44:21:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 9 1 2 0 73 48:21:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 21 1 2 0 16 PBKDF2:Decryptor 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 8 1 2 0 14 operator==:std 21 1 2 0 13 hex:Decryptor 10 1 2 0 73 61:38:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 20 1 2 0 16 stringstream:std 9 1 2 0 73 62:23:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 8 1 2 0 7 hex:std 8 1 2 0 12 internal:std 8 1 2 0 11 setfill:std 9 1 2 0 73 64:16:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 8 1 2 0 8 setw:std 21 1 2 0 34 str:basic_stringstream:__cxx11:std 10 1 2 0 73 70:41:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 10 1 2 0 73 70:70:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 10 1 2 0 73 70:80:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 10 1 2 0 73 70:96:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 9 1 2 0 73 71:17:/home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 21 1 2 0 31 resize:basic_string:__cxx11:std 8 1 2 0 22 PKCS5_PBKDF2_HMAC_SHA1 21 1 2 0 35 operator[]:basic_string:__cxx11:std 21 1 2 0 29 size:basic_string:__cxx11:std 0 0 1 0 0 0 67 /home/hakon/programming/security/Assignment 06/Task a/Decryptor.hpp 1600345515
\ No newline at end of file
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
File deleted
File deleted
This diff is collapsed.
# 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]; }
const char features[] = {"\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L
"1"
#else
"0"
#endif
"cxx_aggregate_default_initializers\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_alias_templates\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_alignas\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_alignof\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_attributes\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_attribute_deprecated\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_auto_type\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_binary_literals\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_constexpr\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_contextual_conversions\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_decltype\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_decltype_auto\n"
"CXX_FEATURE:"
#if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_decltype_incomplete_return_types\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_default_function_template_args\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_defaulted_functions\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_defaulted_move_initializers\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_delegating_constructors\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_deleted_functions\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_digit_separators\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_enum_forward_declarations\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_explicit_conversions\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_extended_friend_declarations\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_extern_templates\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_final\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_func_identifier\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_generalized_initializers\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_generic_lambdas\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_inheriting_constructors\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_inline_namespaces\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_lambdas\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_lambda_init_captures\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_local_type_template_args\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_long_long_type\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_noexcept\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_nonstatic_member_init\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_nullptr\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_override\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_range_for\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_raw_string_literals\n"
"CXX_FEATURE:"
#if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_reference_qualified_functions\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L
"1"
#else
"0"
#endif
"cxx_relaxed_constexpr\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L
"1"
#else
"0"
#endif
"cxx_return_type_deduction\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_right_angle_brackets\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_rvalue_references\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_sizeof_member\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_static_assert\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_strong_enums\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && __cplusplus
"1"
#else
"0"
#endif
"cxx_template_template_parameters\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_thread_local\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_trailing_return_types\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_unicode_literals\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_uniform_initialization\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_unrestricted_unions\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L
"1"
#else
"0"
#endif
"cxx_user_literals\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L
"1"
#else
"0"
#endif
"cxx_variable_templates\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_variadic_macros\n"
"CXX_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__))
"1"
#else
"0"
#endif
"cxx_variadic_templates\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
File deleted
[
{
"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
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment