diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2013-06-27 14:27:11 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2013-09-14 13:53:52 +0200 |
| commit | c67f7dba60631c9e1d0f58a32e866c783fe7216b (patch) | |
| tree | 5d1a40b0e515a2849d83564c214a544bc044e9a6 /phpBB/includes/crypto/helper.php | |
| parent | 16e5d0dc350fbeb15bf662757dba21bd0e729e8c (diff) | |
| download | forums-c67f7dba60631c9e1d0f58a32e866c783fe7216b.tar forums-c67f7dba60631c9e1d0f58a32e866c783fe7216b.tar.gz forums-c67f7dba60631c9e1d0f58a32e866c783fe7216b.tar.bz2 forums-c67f7dba60631c9e1d0f58a32e866c783fe7216b.tar.xz forums-c67f7dba60631c9e1d0f58a32e866c783fe7216b.zip | |
[feature/passwords] Add function for obtaining only the hash to helper
This is also needed for combined hashing of passwords.
PHPBB3-11610
Diffstat (limited to 'phpBB/includes/crypto/helper.php')
| -rw-r--r-- | phpBB/includes/crypto/helper.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/includes/crypto/helper.php b/phpBB/includes/crypto/helper.php index a65cacc73a..0871738d56 100644 --- a/phpBB/includes/crypto/helper.php +++ b/phpBB/includes/crypto/helper.php @@ -145,4 +145,15 @@ class phpbb_crypto_helper $rebuilt_hash .= $settings; return $rebuilt_hash; } + + /** + * Obtain only the actual hash after the prefixes + * + * @param string $hash The full password hash + * @return string Actual hash (incl. settings) + */ + protected function obtain_hash_only($hash) + { + return substr($hash, strripos($hash, '$') + 1); + } } |
