Concept Framework 2.0 documentation | Contents | Index |
Name | Version | Deprecated |
sha1 | version 1.0 | no |
string sha1(string str) |
str | [in] The string of which sha1 is needed |
Calculate the sha1 hash of a string. Calculates the sha1 hash of str using the US Secure Hash Algorithm 1, and returns that hash. The hash is a 40-character hexadecimal number. |
import standard.lib.cripto class Main { function Main() { echo "The sha1 hash of 'test' is : "+sha1("test"); } } Results The sha1 hash of 'test' is : a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 |
Documented by Eduard Suica, generation time: Fri Jan 21 18:06:20 2011 GMT | (c)2011 RadGs Software |