Module misc

Source

Constants§

CRYPTO_IV
DEFAULT_CRYPTO_ID
DEFAULT_CRYPTO_KEY
DEFAULT_SESSION_ID
HASH_CONST

Traits§

EnumMapGet
This is a workaround for clippy index warnings for safe index ops. It also is more convenient in some cases to use these fundtions if you want to make sure something is &mut, or &

Functions§

decrypt_server_request
decrypt_url
This function is designed for reverse engineering encrypted commands from the S&F web client. It expects a login response, which is the ~3KB string response you can see in the network tab of your browser, that starts with serverversion after a login. After that, you can take any URL the client sends to the server and have it decoded into the actual string command, that was sent. Note that this function technically only needs the crypto key, not the full response, but it is way easier to just copy paste the full response. The command returned here will be Command::Custom
from_sf_string
Converts a S&F string from the server to their original unescaped representation
sha1_hash
to_sf_string
Makes a user controlled string, like the character description safe to use in a request