LLMS_Hasher::unhash( [type] $hash )
Decode a hashed string to get the original number
Parameters Parameters
- $hash
-
([type]) (Required) encoded hash string
Return Return
(int)
Source Source
File: includes/class.llms.hasher.php
public static function unhash( $hash ) { $len = strlen( $hash ); $ceil = pow( 62, $len ); $mmiprimes = array_values( self::$golden_primes ); $mmi = $mmiprimes[ $len ]; $num = self::unbase62( $hash ); $dec = self::mod( ( $num * $mmi ), $ceil ); return $dec; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.16.7 | Introduced. |