52 Commits

Author SHA1 Message Date
c1c0e41a33
changed checkExitCode's type to UC 2022-11-03 17:17:15 +01:00
708f53287e
removed unused unistd header from encrypter
idk
2022-11-02 17:38:08 +01:00
187f11ed65
replaced encryptionOperation usage with encryptionOperation getter 2022-10-17 16:47:05 +02:00
e4c5feedb4
implemented encryptedTextKeyChain function in encrypter & decrypter
you can now change the encryption operation in one function
2022-10-16 19:46:56 +02:00
3efb4e6cd0
fixed countRepeatedKeySize parameter typo
in encrypter btw
2022-08-24 15:45:25 +02:00
e293b2f371
added missing 'countRepeatedKeySize' parameter to decrypter & encrypter 2022-08-24 14:56:21 +02:00
d35ce48684
moved encrypter's 'fileBuffer' deallocation at the end of encryptText 2022-07-11 17:52:45 +02:00
7c87d835dd
removed ALL forgotten (flags) parameters passed to misc functions
I mean... I hope
2022-07-10 18:31:40 +02:00
e49f56f288
implemented getFlags function 2022-07-10 18:18:36 +02:00
ad21a520b5
removed inputFlags from encrypt & decrypt functions 2022-07-10 18:17:05 +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
fdd41f35a5
implemented encryptionSeparator getter 2022-06-18 18:30:06 +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
e036359677
implemeted the new integer types of check functions in encrypter 2022-06-12 17:04:47 +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
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
7245b03a37
implemented the INVALID_TEXT exit value 2022-06-12 16:13:23 +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
169c72594a
moved checkVersion before checkText in encrypter 2022-05-31 18:45:24 +02:00
9823b5044a
added elapsedTime to outputFlags
this returns elapsed time in microseconds
2022-05-30 19:09:47 +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
4e0a0c7a27 created function checkText
this checks if text has some content
2022-05-29 16:49:18 +02:00
fd05727b10 keyNew typo fix
whoops, I replaced keyNew for key (which doesn't have any content at this stage)
2022-05-26 19:11:52 +02:00
073cdd2468 moved checking for valid key to misc
I'm trying to make code variable as much as possible
2022-05-26 18:40:46 +02:00
39e174a874 removed unused memory size 2022-05-26 18:40:46 +02:00
0fed6e7f0c Reverted null character "fixes"
This reverts commit 62c21eb37f9bdc9570c53674daf2715373cb80f5.
2022-05-26 18:40:46 +02:00
b84b8aa7cc added/fixed null characters 2022-05-26 18:40:46 +02:00
5093d2395f added NULL character to generated key 2022-05-25 17:58:19 +02:00
6282bc6aec removed only char sizeof
'cause char length is 1 lulw
2022-05-24 18:56:32 +02:00
ef4f9f5084 reverted the sizeof removing
I have no idea
2022-05-24 18:45:44 +02:00
d63c97614f moved fileBuffer deallocation to beggining of encrypter
it for some reason threw segfault
2022-05-24 18:21:33 +02:00
70a2040bab removed unused sizeof
fixing my recent mistakes
2022-05-24 18:03:08 +02:00
7f90c74124 trying to add correct memory allocation
it's possible I'll revert this lol
2022-05-23 18:02:59 +02:00
9a2663c7a4 replaced malloc in loop with realloc
when I was coding first version of WHY2 I didn't know there's something like it lulw
2022-05-22 15:27:37 +02:00
f4148b0de7 secured key generation
I made generating 'random' numbers much much secured -> /dev/urandom
2022-05-21 16:26:24 +02:00
f2da93818b removed *all* trailing spaces
God, please...
2022-05-21 15:46:19 +02:00
67380f51cf fixed invalid allocations
I forgot to add sizeof(int)
2022-05-13 17:30:17 +02:00
e60c05a59f added missing textKeyChain deallocation 2022-05-11 17:41:45 +02:00
0389ca0226 removed deallocation broking outputFlags 2022-05-08 19:48:50 +02:00
efab8647a8 added missing flags implementation 2022-05-08 19:41:20 +02:00
6907ba160e implemented new checkVersion 2022-05-06 17:50:08 +02:00
a11415b949 implemented inputFlags & outputFlags 2022-05-06 17:43:00 +02:00
7158843b73 fixed noOutput getter 2022-05-04 18:52:51 +02:00