/api/qmail/local/util/base32-decode

GET

Decode a QMail custom base32 string back into a non-negative decimal value. Inverse of base32-encode.

Description

Accepts an upper- or lower-case string from the alphabet ABCDEFGHJKLMNPQRSTUVWXYZ23456789 and returns the integer it encodes. The response normalizes the input to uppercase in the base32 field.

Parameters

ParamTypeRequiredDescription
valuestringYesThe base32 string to decode.

Response

{
  "command": "base32",
  "success": true,
  "mode": "decode",
  "decimal": 8189,
  "base32": "PYV"
}

Errors

HTTPMessage
400Missing required parameter: value
400Invalid base32 string (valid chars: ABCDEFGHJKLMNPQRSTUVWXYZ23456789)

Example

curl "http://localhost:8081/api/qmail/local/util/base32-decode?value=PYV"

Related