Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Trucos (https://www.clubdelphi.com/foros/forumdisplay.php?f=52)
-   -   Codificar Hash de manera facil (https://www.clubdelphi.com/foros/showthread.php?t=96879)

navbuoy 05-10-2024 15:48:36

Codificar Hash de manera facil
 
hay una manera mucho mas facil

incluir el System.Hash unit en delphi o System.Hash.hpp en C++ builder

y simplemente si tenemos la contraseña en un MaskEdit hacer esto

Código:

AnsiString password_hash = THashSHA2::GetHashString(MaskEdit1->Text, THashSHA2::TSHA2Version::SHA256);
(en vez de SHA256 podemos poner SHA512 etc)

Neftali [Germán.Estévez] 07-10-2024 08:39:06

^\||/^\||/^\||/^\||/^\||/


La franja horaria es GMT +2. Ahora son las 11:22:53.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi