/** * Formats a hash/digest based on string length. */ function hash_format($hash) { return \Phpf\Util\Str::formatHash($hash); }