277 Commits

Author SHA1 Message Date
99c76285a2
added ID to connection node 2024-04-17 17:25:55 +02:00
22e03ca06e
fixed base bug in exp_mod fn 2024-04-13 14:20:52 +02:00
d9483f02ca
fixed rsa crypto input strings & output base 2024-04-13 13:45:40 +02:00
9cf062565a
created why2_chat_rsa_pri_decrypt 2024-04-13 13:40:26 +02:00
2a9df2a4b9
moved why2_chat_rsa_pub_encrypt body into exp_mod
so in next commit, which will be decryption, I won't kms
2024-04-13 13:38:14 +02:00
b74995bbab
changed WHY2_CHAT_RSA_EXPONENT datatype to string 2024-04-13 13:37:06 +02:00
6487ea8b85
defined why2_chat_rsa_pub_encrypt
pog
2024-04-13 13:30:52 +02:00
ee3f319dd7
implemented why2_chat_deallocate_keys in client 2024-04-13 13:17:03 +02:00
5bd948c8a0
switched fopen for why2_fopen in crypto
whoopsie
2024-04-13 13:09:54 +02:00
60b437d4e8
implemented why2 crypto getters
bit fucked the file
2024-04-13 13:08:44 +02:00
8f3af8c7d1
defined why2_get_chat* rsa stuff fns 2024-04-13 12:32:43 +02:00
bb8436badd
added body for why2_chat_deallocate_keys 2024-04-13 12:32:19 +02:00
2f4c73ce09
created why2_chat_deallocate_keys fn 2024-04-13 12:26:47 +02:00
ef1f9bbf38
renamed why2_chat_generate_keys to why2_chat_init_keys
I think the name is much more self-explanatory now
2024-04-13 12:24:19 +02:00
274a3e1772
revert "sending ssqc on every message loop end"
this reverts commit b14c8de7105a9f570a227ce7f8608103b205eca9

it seems that I created the check for some reason
2024-02-26 15:19:41 +01:00
850ab11272
using latest toml version in rust module 2024-02-25 20:54:17 +01:00
4d6b29e4c6
implemented max_message_length in message loop 2024-02-25 20:34:18 +01:00
13d4e2f480
created max_message_length in server cfg 2024-02-25 20:25:38 +01:00
b14c8de710
sending ssqc on every message loop end 2024-02-25 14:23:53 +01:00
22282623af
implemented trim_string in message loop 2024-02-25 13:16:12 +01:00
157d56ac57
not disconnecting user on null message 2024-02-25 13:15:54 +01:00
47fd5f01b6
created trim_string fn 2024-02-25 13:15:29 +01:00
cb15d856de
why2_chat_generate_keys grammar fix
yessir i am an english-man fr fr
2024-02-23 20:27:00 +01:00
836d3ec44a
implemented WHY2_CHAT_KEY_BASE macro 2024-02-23 11:55:29 +01:00
4397122aaf
writing the rsa keys out 2024-02-23 11:47:33 +01:00
923b9907db
renamed WHY2_CHAT_PUB_KEY_LOCATION to WHY2_CHAT_KEY_LOCATION 2024-02-23 11:08:19 +01:00
c89ae6c884
implemented WHY2_CHAT_RSA_EXPONENT in why2_chat_generate_keys 2024-02-23 11:04:21 +01:00
0c03ed3785
added key dir check into why2_chat_generate_keys 2024-02-23 10:59:38 +01:00
1e925ec794
implemented why2_chat_generate_keys in client 2024-02-23 10:35:22 +01:00
c450adb0a8
added config init comments 2024-02-23 10:34:04 +01:00
55550e4ea4
defined why2_chat_generate_keys fn
and guess what! it doesn't save the keys, yet :dd
2024-02-23 10:27:00 +01:00
df4f7aae7d
created generate_prime fn
it uses gmp 😎
2024-02-23 10:25:07 +01:00
13dff8514d
created crypto files 2024-02-23 09:40:34 +01:00
20e805a8ad
removed why2_read_socket fn
using raw data in client loop
2024-02-22 09:31:46 +01:00
fd68b0d01a
implemented max/min username 2024-02-21 21:38:38 +01:00
c2b9c7c57a
possible loop problems fix 2024-02-21 21:35:13 +01:00
d30cd4f714
simplified json/config to int parse 2024-02-21 21:33:50 +01:00
32592aefb8
removed unused find_color fn 2024-02-21 21:25:49 +01:00
c163b63afc
implemented server_uname in why2_listen_server 2024-02-21 21:24:20 +01:00
57116ecd33
sending welcome packet 2024-02-21 20:56:21 +01:00
8a81c515df
added welcome parameter to packet sending 2024-02-21 20:50:45 +01:00
965395e9d4
implemented max_username_tries from server config 2024-02-21 20:29:40 +01:00
968498cf4e
implemented communication_time from server config 2024-02-21 20:18:39 +01:00
8c742b1884
implemented default_username from server config 2024-02-21 16:39:44 +01:00
e450032f26
implemented server_username from server config 2024-02-21 16:35:44 +01:00
06af6a801c
sending WHY2_CHAT_CODE_ACCEPT_MESSAGES earlier 2024-02-21 11:24:56 +01:00
f77f3a8c93
implemented config functions
way better now
2024-02-21 10:48:48 +01:00
41a0911a28
defined config functions
made it as least duplicate as possible
2024-02-21 10:42:19 +01:00
0067524713
added some flags to server config file 2024-02-21 09:16:33 +01:00
a6f37b1aa3
added WHY2 into some chat-flags' identificator 2024-02-21 09:06:43 +01:00