LLMS_Hasher::unhash( [type] $hash )

Decode a hashed string to get the original number


Parameters Parameters

$hash

([type]) (Required) encoded hash string


Top ↑

Return Return

(int)


Top ↑

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;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.16.7 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.