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

# Masking Algorithm

You may customize your data masking algorithm with the help of a predefined masking type while [creating a semantic type](/security/data-masking/semantic-types).

## Full mask

Mask the entire value and show **Substitute** value.

<img src="https://mintcdn.com/dbx/hVml3kA8vNK6vcVL/content/docs/security/data-masking/bb-algorithm-full.webp?fit=max&auto=format&n=hVml3kA8vNK6vcVL&q=85&s=c69527c892ef06523c5657bbc8fe308c" alt="bb-algorithm-full" width="1346" height="954" data-path="content/docs/security/data-masking/bb-algorithm-full.webp" />

## Range mask

Mask several characters of a string and replace them with **Substitute** value.

<img src="https://mintcdn.com/dbx/hVml3kA8vNK6vcVL/content/docs/security/data-masking/bb-algorithm-range.webp?fit=max&auto=format&n=hVml3kA8vNK6vcVL&q=85&s=e192467013ec41eda45cad286fed115d" alt="bb-algorithm-range" width="1352" height="954" data-path="content/docs/security/data-masking/bb-algorithm-range.webp" />

## MD5 mask

Use MD5 algorithm together with **Salt** value to hash.

<img src="https://mintcdn.com/dbx/hVml3kA8vNK6vcVL/content/docs/security/data-masking/bb-algorithm-md5.webp?fit=max&auto=format&n=hVml3kA8vNK6vcVL&q=85&s=cb7da10fc1af9bde6b810e375033aa30" alt="bb-algorithm-md5" width="1354" height="956" data-path="content/docs/security/data-masking/bb-algorithm-md5.webp" />

## Inner / Outer mask

* Inner mask: Mask `123456` to format like `12**56`, `1***56`.
* Outer mask: Mask `123456` to format like `**34**`, `*23***`.

<img src="https://mintcdn.com/dbx/hVml3kA8vNK6vcVL/content/docs/security/data-masking/bb-algorithm-inner.webp?fit=max&auto=format&n=hVml3kA8vNK6vcVL&q=85&s=a872c6583f60bc5263a76f830bdce955" alt="bb-algorithm-inner" width="1342" height="1010" data-path="content/docs/security/data-masking/bb-algorithm-inner.webp" />
