690 Commits

Author SHA1 Message Date
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
69867cc0ba
added unusedKeySize to why2-test success message 2022-05-30 18:06:35 +02:00
637ee2b842
fixed invalid unusedKeySize
I put wrong variable as parameter
2022-05-30 18:04:24 +02:00
abbe519ab4
added unusedKeySize to outputFlags
this returns positive number, which represents how many chars from key are unused
2022-05-30 18:01:21 +02:00
96945a4d31
simplified getting content of fileBuffer in checkVersion
i have no idea why it was like that
2022-05-29 18:40:33 +02:00
7714e45019 changed countIntLength type from I to UL 2022-05-29 17:47:50 +02:00
e3790a2bff changed keyLength type from I to UL 2022-05-29 17:46:16 +02:00
483194b52c added missing deallocation to why2-test
I forgot to deallocate encrypted text before decryption
2022-05-29 17:00:43 +02:00
4e0a0c7a27 created function checkText
this checks if text has some content
2022-05-29 16:49:18 +02:00
ac82127bcc fixed decryption returningText bugs
I forgot that newly allocated text has some content....
2022-05-29 16:44:14 +02:00
0d64f4fa7c changed textKeyChain generation
it's a little change but it will make encryption/decryption old text UNSUCCESSFUL
2022-05-28 19:45:26 +02:00
3d48c87d8b made generating textKeyChain more variable 2022-05-28 19:41:57 +02:00