PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 25 → Exemplo MD5
Exemplo MD5
Iniciado por Boller, 02,sep. 2022 17:49 - No hay respuesta
Miembro registrado
4.521 mensajes
Publicado el 02,septiembre 2022 - 17:49
Segue link do exemplo

https://repository.windev.com/resource.awp…

// Résumé : <indiquez ici ce que fait la procédure>
// Syntaxe :
// MD5 ()
//
// Paramètres :
// Aucun
// Valeur de retour :
// Aucune
//
// Exemple :
// <Indiquez ici un exemple d'utilisation>
//
PROCÉDURE MD5(sTexto is ANSI string) :string

//referencia = https://www.md5online.org/md5-encrypt.html
//exemplo de teste com o site = The MD5 hash for A@123log456 is : 731ee91eed46aa98a9a062a152e1817f

bufSenhadigita is Buffer = HashString(HA_MD5_128, sTexto)

sMD5 is ANSI string

FOR i = 1 _TO_ Length(bufSenhadigita)

sMD5+=NumToString(Asc(bufSenhadigita[i]),"02X")

END

RESULT sMD5



Ou

VALOR_MD5 IS STRING = BufferToHexa(HashString(HA_MD5_128,"A@123log456"),NoGrouping,NoLine)

https://www.youtube.com/watch?v=MFh33bYlrgI

VIDEO EXPLICANDO


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/