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

# Security

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> create\_uid

`value|create_uid`

<Accordion title="Examples">
  ```js theme={null}
  "seed"|create_uid       // Returns a unique 64-bit unsigned int
  123|create_uid          // Returns a unique 64-bit unsigned int based on 123
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> decrypt

`value|decrypt:algorithm:key:iv`

<Accordion title="Examples">
  ```js theme={null}
  encrypted_data|decrypt:"aes-128-cbc":"secret_key":""    // Returns decrypted data
  encrypted_data|decrypt:"aes-256-cbc":"key":"iv"         // Returns decrypted data with IV
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> encrypt

`value|encrypt:algorithm:key:iv`

<Accordion title="Examples">
  ```js theme={null}
  "sensitive data"|encrypt:"aes-128-cbc":"secret_key":""    // Returns encrypted data
  "sensitive data"|encrypt:"aes-256-cbc":"key":"iv"         // Returns encrypted data with IV
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> hmac\_sha1 / hmac\_sha256 / hmac\_384 / hmac\_512

`value|hmac_sha1:secret:hex_output`

<Accordion title="Examples">
  ```js theme={null}
  "data"|hmac_sha1:"secret":true     // Returns hex HMAC-SHA1 signature
  "data"|hmac_sha1:"secret":false    // Returns base64 HMAC-SHA1 signature
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> jwe\_decode

`value|jwe_decode:key:header:key_algo:enc_algo:max_age`

<Accordion title="Examples">
  ```js theme={null}
  token|jwe_decode:"{}":"{}":"A256KW":"A256CBC-HS512":0    // Returns decoded JWE token
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> jwe\_encode

`value|jwe_encode:key:header:key_algo:enc_algo:max_age`

<Accordion title="Examples">
  ```js theme={null}
  data|jwe_encode:"{}":"{}":"A256KW":"A256CBC-HS512":0    // Returns JWE token
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> jws\_decode

`value|jws_decode:key:header:algo:max_age`

<Accordion title="Examples">
  ```js theme={null}
  token|jws_decode:"{}":"{}":"HS256":0    // Returns decoded JWS token
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> jws\_encode

`value|jws_encode:key:header:algo:max_age`

<Accordion title="Examples">
  ```js theme={null}
  data|jws_encode:"{}":"{}":"HS256":0    // Returns JWS token
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> md5

`value|md5:numeric`

<Accordion title="Examples">
  ```js theme={null}
  "data"|md5:true     // Returns numeric MD5 hash
  "data"|md5:false    // Returns string MD5 hash
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> secureid\_decode

`value|secureid_decode:key`

<Accordion title="Examples">
  ```js theme={null}
  encrypted_id|secureid_decode:"secret_key"    // Returns original ID
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> secureid\_encode

`value|secureid_encode:algorithm`

<Accordion title="Examples">
  ```js theme={null}
  "123"|secureid_encode:""           // Returns encrypted ID with default algorithm
  "123"|secureid_encode:"aes-256"    // Returns encrypted ID with specified algorithm
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> sha1 / sha256 / sha384 / sha512

`value|sha1:hex_output`

<Accordion title="Examples">
  ```js theme={null}
  "data"|sha1:true     // Returns hex SHA1 hash
  "data"|sha1:false    // Returns binary SHA1 hash
  ```
</Accordion>

## <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> uuid

`value|uuid`

<Accordion title="Examples">
  ```js theme={null}
  ""|uuid    // Returns a new UUID
  ```
</Accordion>
