Concept Framework 1.0 documentation Contents | Index

standard.lib.cripto.md5

Name Version Deprecated
md5 version 1.0 no

Prototype:
string md5(string str)

Parameters:
str      [in] The string of which md5 is needed

Description:
Calculate the md5 hash of a string. Calculates the MD5 hash of str using the RSA Data Security, Inc. MD5 Message-Digest Algorithm, and returns that hash. The hash is a 32-character hexadecimal number.

Example:
import standard.lib.cripto


class Main {
function Main() {
echo "The md5 hash of 'test' is : "+md5("test");
}
}

Results
The md5 hash of 'test' is : 098f6bcd4621d373cade4e832627b4f6

Returns:
Returns the md5 hash as a string encapsulating a hex number.

Documented by Eduard Suica, generation time: Thu Oct 15 20:02:05 2009 GMT(c)2009 RadGs Software