> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Cryptography

> Kodowanie, hashowanie, szyfrowanie i kompresja.

<div className="real-category-page">
  Kodowanie, hashowanie, szyfrowanie i kompresja.

  ## Dostępne funkcje

  <CardGroup cols={2}>
    <Card title="base64_decode" href="./base64-decode">
      Dekoduje wejscie Base64 za pomoca Base64 decoder i zwraca zdekodowane bajty jako Lua string.
    </Card>

    <Card title="base64_encode" href="./base64-encode">
      Koduje bajty Lua string za pomoca Base64 encoder, uzywajac = padding i bez znakow nowej linii.
    </Card>

    <Card title="crypt.decrypt" href="./crypt-decrypt">
      Odszyfrowuje Base64 ciphertext za pomoca key zdekodowanego z Base64 i wymaganego Base64 IV, uzywajac AES CBC albo ECB.
    </Card>

    <Card title="crypt.encrypt" href="./crypt-encrypt">
      Szyfruje bajty Lua string za pomoca AES CBC, ECB albo CTR z key zdekodowanym z Base64, a nastepnie zwraca Base64 ciphertext i wynik IV.
    </Card>

    <Card title="crypt.generatebytes" href="./crypt-generatebytes">
      Generuje losowe bajty za pomoca random byte generator i zwraca je Base64-encoded jako Lua string.
    </Card>

    <Card title="crypt.generatekey" href="./crypt-generatekey">
      Generuje 32 losowe raw bytes za pomoca random byte generator i zwraca je Base64-encoded jako Lua string.
    </Card>

    <Card title="crypt.hash" href="./crypt-hash">
      Hashuje bajty Lua string obslugiwanym algorytmem crypto library hash i zwraca lowercase hexadecimal digest.
    </Card>

    <Card title="crypt.hmac" href="./crypt-hmac">
      Oblicza crypto library HMAC dla bajtow Lua string z raw Lua string key i zwraca Base64 digest.
    </Card>

    <Card title="crypt.random" href="./crypt-random">
      Generuje raw random bytes za pomoca random byte generator i zwraca je jako Lua string.
    </Card>

    <Card title="lz4compress" href="./lz4compress">
      Kompresuje bajty Lua string za pomoca LZ4 block compression i zwraca raw compressed bytes jako Lua string.
    </Card>

    <Card title="lz4decompress" href="./lz4decompress">
      Dekompresuje raw LZ4 block bytes za pomoca LZ4 block decompression i zwraca raw decompressed bytes jako lancuch Lua.
    </Card>
  </CardGroup>
</div>
