aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/crypto/helper.php11
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);
+ }
}