added framework for auth server

This commit is contained in:
DJMrTV 2025-01-19 14:14:48 +01:00
commit 7582f36795
7 changed files with 620 additions and 21 deletions

View file

@ -0,0 +1,14 @@
use std::net::Ipv4Addr;
use rc4::Rc4;
pub trait AuthModule{
fn get_auth_key(addr: Ipv4Addr) -> [u8; 32];
}
/*
struct AuthServerAuthModule;
impl AuthModule for AuthServerAuthModule{
fn get_auth_key(addr: Ipv4Addr) -> rc4 {
}
}*/