Hi,

In many cases (ex., communication protocol implementation) we need binary digest result, and hex format is used for human readable representation only.

You are right. I'll add support for such parameter.
Maybe we should even return binary data by default.
What's group decision?

No, let's leave it default to hex format. Hackers will be clever enough to add .T., the other, ex., who just want to print md5 sum of a file, will be glad to do:
   ? hb_md5file("myfile.ext")

Leaving lBinary = .F. for default will also make this change backward compatible.

For example PHP uses also this convention:
   string md5( string str [, bool raw_output] )
raw_output is false by default.


Regards,
Mindaugas

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to