FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to calculate a Hash MD5 from one string?
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
How to calculate a Hash MD5 from one string?
Posted: Tue May 22, 2007 01:45 AM

Antonio,

How to calculate a Hash MD5 from one string?

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 990
Joined: Wed Oct 19, 2005 02:17 PM
How to calculate a Hash MD5 from one string?
Posted: Tue May 22, 2007 02:27 AM
Posts: 129
Joined: Mon Oct 17, 2005 03:03 AM
Re: How to calculate a Hash MD5 from one string?
Posted: Tue May 22, 2007 10:21 AM
vilian wrote:Antonio,

How to calculate a Hash MD5 from one string?


xHarbour support it, like:
MD5("") = d41d8cd98f00b204e9800998ecf8427e
MD5("a") = 0cc175b9c0f1b6a831c399e269772661
MD5("abc") = 900150983cd24fb0d6963f7d28e17f72
MD5("message digest") = f96b697d7cb7938d525a2f31aaf161d0
MD5("abcdefghijklmnopqrstuvwxyz") = c3fcd3d76192e4007dfb496cca67e13b
MD5("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") = d174ab98d277d9f5a5611c2c9f419d9f
MD5("12345678901234567890123456789012345678901234567890123456789012345678901234567890") = 57edf4a22be3c955ac49da2e2107b67a


support file:
? HB_MD5FILE ( cInFile )
line ID: ssbbstw

WeChat ID: ssbbstw
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
How to calculate a Hash MD5 from one string?
Posted: Tue May 22, 2007 11:42 AM

Ssbbs,

Thanks.

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
How to calculate a Hash MD5 from one string?
Posted: Tue May 22, 2007 01:35 PM
Hi ssbbs,

HB_MD5("abc") = 900150983cd24fb0d6963f7d28e17f72


How to get the actual value i.e. "abc" from "900150983cd24fb0d6963f7d28e17f72" ?

Regards

- Ramesh Babu P
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
How to calculate a Hash MD5 from one string?
Posted: Tue May 22, 2007 04:51 PM

Ramesh,

Until where I know, one of the great advantages of the MD5 is that this is not possible.

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
How to calculate a Hash MD5 from one string?
Posted: Tue May 22, 2007 05:16 PM
Mr.Vilian


one of the great advantages of the MD5 is that this is not possible.


Excellent answer.

I was in need of such function.

Regards

- Ramesh Babu P
Posts: 129
Joined: Mon Oct 17, 2005 03:03 AM
How to calculate a Hash MD5 from one string?
Posted: Wed May 23, 2007 03:15 AM
RAMESHBABU wrote:Hi ssbbs,

HB_MD5("abc") = 900150983cd24fb0d6963f7d28e17f72


How to get the actual value i.e. "abc" from "900150983cd24fb0d6963f7d28e17f72" ?

Regards

- Ramesh Babu P


reference : http://www.md5decrypter.com/
line ID: ssbbstw

WeChat ID: ssbbstw
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
How to calculate a Hash MD5 from one string?
Posted: Wed May 23, 2007 06:20 AM

Hi Ssbbs,

Oh! Md5 hash dicryption is avalable:o

Is there any way to get its code ?

Thanks

  • Ramesh Babu P

Continue the discussion