# \*WEB/BASE32: Encrypt or Decode Data

> Source: https://manual.pvxplus.com/web-utilities/webbase32

## Description

The **\*web/base32** utility is a CALLed program that contains functions to encode and decode data in Base32 format.

Base32 is a way of converting data into simple text so it can be safely shared or stored in systems that only support plain text. It is often used when only certain characters are allowed or when the text needs to be easy to read and enter; for example, for access codes, security keys, and other identifiers that avoid special symbols such as + or /.

## Format 1

***Encode String***

**CALL "\*web/base32;ENCODE"**, *a$*, *b$*

Use this format for encoding strings.

***Where:***

*a$* Input string to encode  
 *b$* Output string containing Base32-encoded result

***Example:***

```
a$ = "Hello"
CALL "*web/base32;ENCODE", a$, b$
PRINT b$ ! output JBSWY3DP
```

## Format 2

***Decode String***

**CALL "\*web/base32;DECODE"**, *a$*, *b$*

Use this format for decoding Base32 strings back to the original data.

***Where:***

*a$* Input string containing Base32 data  
 *b$* Output string containing decoded result

***Example:***

```
a$ = "JBSWY3DP"
CALL "*web/base32;DECODE", a$, b$
PRINT b$ ! output "Hello"
```

## See Also

**[\*WEB/BASE64 Encrypt or Decode Data](https://manual.pvxplus.com/web-server-reference/setting-up-pxplus-web-server/pxplus-web-server-utilities/encrypt-or-decode-data)**
