encode($number); } // end encode; /** * Decodes a hash back into an integer. * * @since 2.0.0 * * @param string $hash Hash to decode. * @param string $group Hash group. Used to increase entropy. * @return int */ public static function decode($hash, $group = 'wp-ultimo') { $hasher = new Hashids($group, 10, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'); return current($hasher->decode($hash)); } // end decode; } // end class Hash;