301 Commits

Author SHA1 Message Date
92dd06d8b0
moved variables from flags.h to flags.c
this just makes flags safer
2022-07-01 18:45:44 +02:00
7cb46db306
added some quotes to why2-test success message
I think it's good for checking if there aren't any 'trailing spaces'
2022-06-25 18:09:42 +02:00
c3e7caf4b3
added missing installCommand deallocation to auto-update
NOTE: function 'replaceWord' returns allocated text
2022-06-21 19:14:06 +02:00
9ffefa4419
biatch, added every missing type cast
if you're asking why, look at next commit
2022-06-19 17:19:03 +02:00
f26d23a08c
removed unused math library from encrypter
woah, I forgot to remove it in 271afd53d3728039a43bd543e48e176d7e3bbcfe
2022-06-19 16:35:39 +02:00
5aa45b9bcd
removed TODO from key generation
I forgot it there
2022-06-19 16:25:32 +02:00
c3b6e26036
renamed noOutput variables
made it prettier
2022-06-19 16:22:28 +02:00
0a0803145c
made noOutput safer
it's now returning empty key of *VALID* keyLength
2022-06-19 16:20:52 +02:00
e45e13b7e5
blocking null character in setEncryptionSeparator 2022-06-18 18:37:39 +02:00
3585563139
added encryptionSeparator setter to why2-test 2022-06-18 18:34:27 +02:00
fdd41f35a5
implemented encryptionSeparator getter 2022-06-18 18:30:06 +02:00
1a5b58edf9
created getter & setter for encryptionSeparator 2022-06-18 18:28:33 +02:00
23dec2b310
replaced ENCRYPTION_SEPARATOR_STRING usage for ENCRYPTION_SEPARATOR 2022-06-18 18:17:54 +02:00
4aa80c199c
fixed (I hope) every allocation size
"Just use Valgrind", they said.... I should listen to them
2022-06-13 18:13:27 +02:00
62b2094d48
made random seed always positive in encrypter
the UL was risky
2022-06-12 18:32:08 +02:00
b5e27a1857
changed checking functions type from I to UC 2022-06-12 17:20:55 +02:00
86c8460615
changed returned text in noOutput to same but allocated text
it could possibly cause deallocattion problems
2022-06-12 17:15:07 +02:00
ad15dce494
added exit code to final why2-test message 2022-06-12 17:08:37 +02:00
3412ebd8d3
implemeted the new integer types of check functions in decrypter
didn't expect this, right? lmao
2022-06-12 17:06:44 +02:00
e036359677
implemeted the new integer types of check functions in encrypter 2022-06-12 17:04:47 +02:00
02d48ef32c
blocking update in why2-test 2022-06-12 16:43:22 +02:00
ebe54b4b4a
added missing SUCCESS value to skipping check in checkVersion 2022-06-12 16:37:32 +02:00
99e1ca932d
added missing SUCCESS exit to checkKey & checkText 2022-06-12 16:36:41 +02:00
827331c2ff
changed all other checking functions type to int 2022-06-12 16:35:43 +02:00
d196818ec0
changed checkVersion return type to int
it will return exitCode
2022-06-12 16:34:19 +02:00
78e93f6d19
removed unreachable/duplicate code from encrypter
I have no clue why, but there was duplicate code for checking text
2022-06-12 16:29:35 +02:00
f9bdbb1053
replaced all exit calls by returning noOutput 2022-06-12 16:28:16 +02:00
c7902f5c83
added missing exit code to returning outputFlags in decrypter & encrypter 2022-06-12 16:23:26 +02:00
8c787b5387
replaced exit for noOutput in INVALID_TEXT scenario 2022-06-12 16:22:29 +02:00
045db6c7db
added exitCode parameter to noOutput function 2022-06-12 16:21:12 +02:00
c5de589fff
created noOutput function
let's play a game - I will not explain what it does and you'll start thinking about it
2022-06-12 16:17:09 +02:00
7245b03a37
implemented the INVALID_TEXT exit value 2022-06-12 16:13:23 +02:00
23663d5524
added warning
sad
2022-06-11 19:05:23 +02:00
388f0d05c7
created code for auto-update
it's just beta - you have to run program with root perms
2022-06-11 19:00:24 +02:00
d1e6ff12dc
blocking auto-update as default 2022-06-11 18:53:25 +02:00
98ec31c9cf
removed the 'git' files
omfg I'm so stupid -> you can do this MUCH easier
2022-06-11 16:59:45 +02:00
d912491b55
stealed some code and put it into 'git' files 2022-06-11 16:51:17 +02:00
a911cef259
created 'git' header & source files 2022-06-11 16:26:49 +02:00
7d36275b2a
made 'else' prettier 2022-06-10 19:48:45 +02:00
8cddd8ee30
removed unused check for using checkVersion 2022-06-08 19:27:55 +02:00
312e362674
replaced all skipCheck for noCheck 2022-06-08 19:26:24 +02:00
5511210d89
added missing flags to inputFlags constructors 2022-06-08 19:25:54 +02:00
e4cc4ee082
added backspace character after wiki link in why2-app
I'm just bored...
2022-05-31 18:58:09 +02:00
54f819a741
added tabs into why2-test success message 2022-05-31 18:52:05 +02:00
da19d8fd10
made why2-test success message more organized
just divided it into more lines
2022-05-31 18:49:28 +02:00
169c72594a
moved checkVersion before checkText in encrypter 2022-05-31 18:45:24 +02:00
57c49a3d72
added checking for active version to decrypter 2022-05-31 18:44:25 +02:00
64c225f56e
added missing space to compareTimeMicro 2022-05-30 19:18:37 +02:00
213c9ea37f
added elapsedTime to why2-test success message
but in miliseconds (instead of microseconds)
2022-05-30 19:13:43 +02:00
9823b5044a
added elapsedTime to outputFlags
this returns elapsed time in microseconds
2022-05-30 19:09:47 +02:00