Difference between revisions of "Nssha1"
Jump to navigation
Jump to search
(created page) |
(formatted with pre) |
||
| Line 3: | Line 3: | ||
Example: | Example: | ||
| + | <pre> | ||
set sRawPassword "mypassword" | set sRawPassword "mypassword" | ||
set sPassword [ns_sha1 $sRawPassword] | set sPassword [ns_sha1 $sRawPassword] | ||
ns_adp_puts $sPassword | ns_adp_puts $sPassword | ||
# 04003622EB9D0F788CE7568C7EED23809534365A | # 04003622EB9D0F788CE7568C7EED23809534365A | ||
| + | </pre> | ||
Revision as of 22:07, 2 December 2005
The nssha1 module provides the ns_sha1 function:
Example:
set sRawPassword "mypassword" set sPassword [ns_sha1 $sRawPassword] ns_adp_puts $sPassword # 04003622EB9D0F788CE7568C7EED23809534365A