---
url: /flow/guide/scripting-reference/functions/encryption/md5convert.md
---

# MD5Convert

## Declaration

Function MD5Convert( aHash : string; aTo : See [TFloMD5HashType](/flow/guide/scripting-reference/data-types/enumerations/tflomd5hashtype)) : string

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := MD5Convert('uzb+qsRteqq0GBOLV4/X4A==', fhtHex); //value will be 'bb36feaac46d7aaab418138b578fd7e0'
end;
```

## Description

Converts a MD5 Hash from one format to another. aTo parameter represents the format for the output. The input hash should always be of the opposite type
