Crypt.MD5 (gb.crypt)

Static Function MD5 ( Password As String [ , Prefix As String ] ) As String

Encrypts the string Password with the MD5 algorithm by using Prefix as a prefix.

Prefix must have a size of 8 characters, from among these characters: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz./

If Prefix is not specified, it is randomized.

Example

Use "gb.crypt" 'For Gambas Script Only

Print Crypt.MD5("Password1234", "pf123456")
$1$pf123456$dbJLc7IWTyfT7DOHDxrT4.