This shows you the differences between two versions of the page.
uphp:functions:sha1 [2017/05/16 06:14] admin created |
uphp:functions:sha1 [2021/09/13 05:57] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== sha1($str) ====== | ||
- | Calculate the sha1 hash of a string. | ||
- | For more information on SHA1, see the [[https:// | ||
- | |||
- | Example: | ||
- | |||
- | <code php> | ||
- | <pre> | ||
- | <? | ||
- | // call the function with this: sha1.cgi? | ||
- | |||
- | // sha1 hash value for secretykey | ||
- | $hash = " | ||
- | |||
- | if (sha1($_GET[' | ||
- | print(" | ||
- | } | ||
- | |||
- | ?> | ||
- | </ | ||
- | |||
- | </ |