# Base 64 - Base 58

<figure><img src="https://2319878279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAaI3M9Ud9tRGjdtmvRws%2Fuploads%2FuiGw4NRJNJVsJAQRhPr9%2Fimage.png?alt=media&#x26;token=a42f27c7-7fc0-4756-b157-d88e14c83ede" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
You Need to Encode to base 64 First after you use this function

Also Base 58 to Base 64 this function is encode mode , not decode string
{% endhint %}



## Example

<figure><img src="https://2319878279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAaI3M9Ud9tRGjdtmvRws%2Fuploads%2FtmNoroAOXL3yWpYkKO5D%2Fimage.png?alt=media&#x26;token=16e0da22-b393-44c1-b0d1-b2a114bb493e" alt=""><figcaption><p>If Cant Decode Please Dont Use Custom Code</p></figcaption></figure>

{% hint style="danger" %}
![](https://2319878279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAaI3M9Ud9tRGjdtmvRws%2Fuploads%2F6BQcgVDoZ86SV4QwUXzJ%2Fimage.png?alt=media\&token=774ad1e3-74e6-43ec-be76-392e347fc011) Please Change this to Null , If you want to use Base 58

***

Because Already Out of Range with uint8 & Lenght
{% endhint %}

<figure><img src="https://2319878279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAaI3M9Ud9tRGjdtmvRws%2Fuploads%2FntLaCMya4CqNNlffEQv4%2Fimage.png?alt=media&#x26;token=b63749d4-9f9c-4be3-a116-83244f54c6ce" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2319878279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAaI3M9Ud9tRGjdtmvRws%2Fuploads%2F8ZpZIzdarNEwP6AAkvz7%2Fimage.png?alt=media&#x26;token=72ee2eab-c25e-4a69-9e4d-43e64a15c026" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Use 2 ways protect variable
{% endhint %}
