Crypt.MD5 (gb.crypt)

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

Criptografa a string Password com o algoritmo MD5 usando Prefix como prefixo.

Prefix deve ter um tamanho de 8 caracteres, dentre os seguintes caracteres:

0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz./

Se Prefix não for especificado, será aleatório.

Exemplo

Dim sPassword As String
sPassword = Crypt.MD5("Teste", "abcdefgh")
Print sPassword

$1$abcdefgh$3DCrF/XsMfdIph4nwCE9D1