Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » MASM Implementation
Re: MASM Implementation [message #7565 is a reply to message #7564] Sat, 06 January 2007 14:35 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Gatling_Gun wrote on Sat, 06 January 2007 08:28

Thx, I solve all... but
can you explain me what is the second parameter in MD5Digest()?

thx for your patience!


String        MD5Digest(const char *text, int length);
inline String MD5Digest(String s)                 { return MD5Digest(s.Begin(), s.GetLength()); }


If still unclear:

There are two versions - first one is for raw binary data, second one is for String. If used with binary data, you have to supply how much data is there. String has this information inside.

OK, now the somewhat confusing part is that String can be constructed from (zero terminated) const char * and converts to (zero terminated) const char *....

Anyway, the simple thing to do is to avoid second parameter.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multiline text display
Next Topic: Chip 8 Emulator
Goto Forum:
  


Current Time: Sat Jun 01 11:02:56 CEST 2024

Total time taken to generate the page: 0.01455 seconds