[ Index ] |
PHP Cross Reference of Phabricator |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 78 lines (2 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
digest($string, $key = null) X-Ref |
Digest a string for general use, including use which relates to security. param: string Input string. return: string 32-byte hexidecimal SHA1+HMAC hash. |
digestPassword(PhutilOpaqueEnvelope $envelope, $salt) X-Ref |
Digest a string into a password hash. This is similar to @{method:digest}, but requires a salt and iterates the hash to increase cost. |
digestForIndex($string) X-Ref |
Digest a string for use in, e.g., a MySQL index. This produces a short (12-byte), case-sensitive alphanumeric string with 72 bits of entropy, which is generally safe in most contexts (notably, URLs). This method emphasizes compactness, and should not be used for security related hashing (for general purpose hashing, see @{method:digest}). param: string Input string. return: string 12-byte, case-sensitive alphanumeric hash of the string |
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |